diff options
author | Benety Goh <benety@mongodb.com> | 2015-06-07 20:49:34 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2015-06-09 19:03:03 -0400 |
commit | 7a051310660319f3fc33b85722a206a11fa20309 (patch) | |
tree | c2ff91734c49ad08fad38ba345f2bb2f0823b2e0 /src/mongo/db/ops/update.cpp | |
parent | 23628bdf724248a28bb73f6a1b647139ca09e465 (diff) | |
download | mongo-7a051310660319f3fc33b85722a206a11fa20309.tar.gz |
SERVER-18807 modified ReplicationCoordinator::canAcceptWritesForDatabases to accept a namespace instead of a database name
Diffstat (limited to 'src/mongo/db/ops/update.cpp')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index ab2a48a72fb..b4d8de45094 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -81,8 +81,7 @@ namespace mongo { Lock::DBLock lk(txn->lockState(), nsString.db(), MODE_X); const bool userInitiatedWritesAndNotPrimary = txn->writesAreReplicated() && - !repl::getGlobalReplicationCoordinator()->canAcceptWritesForDatabase( - nsString.db()); + !repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(nsString); if (userInitiatedWritesAndNotPrimary) { uassertStatusOK(Status(ErrorCodes::NotMaster, str::stream() |