diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2017-03-06 17:51:46 -0500 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2017-03-06 17:51:46 -0500 |
commit | a271833d0edd7ca4aac67f3e7be55e102c631a93 (patch) | |
tree | 0a778dc3fd99a4df25505dbf49c724afcd4dff81 /src/mongo/db/dbhelpers.cpp | |
parent | 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9 (diff) | |
download | mongo-a271833d0edd7ca4aac67f3e7be55e102c631a93.tar.gz |
SERVER-27914 Verify canAcceptWritesForDatabase() is called while the caller holds the global lock
This reverts commit 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r-- | src/mongo/db/dbhelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp index a030d2b579f..2dd6c2c7d1c 100644 --- a/src/mongo/db/dbhelpers.cpp +++ b/src/mongo/db/dbhelpers.cpp @@ -437,7 +437,7 @@ long long Helpers::removeRange(OperationContext* txn, } } - if (!repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(nss)) { + if (!repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(txn, nss)) { warning() << "stepped down from primary while deleting chunk; " << "orphaning data in " << nss.ns() << " in range [" << redact(min) << ", " << redact(max) << ")"; |