summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2015-06-07 20:49:34 -0400
committerBenety Goh <benety@mongodb.com>2015-06-09 19:03:03 -0400
commit7a051310660319f3fc33b85722a206a11fa20309 (patch)
treec2ff91734c49ad08fad38ba345f2bb2f0823b2e0 /src/mongo/db/ops/update.cpp
parent23628bdf724248a28bb73f6a1b647139ca09e465 (diff)
downloadmongo-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.cpp3
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()