summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/update.cpp')
-rw-r--r--src/mongo/db/ops/update.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp
index 872a1253a35..c1d45a2a890 100644
--- a/src/mongo/db/ops/update.cpp
+++ b/src/mongo/db/ops/update.cpp
@@ -511,7 +511,7 @@ namespace mongo {
uassert(ErrorCodes::NotMaster,
mongoutils::str::stream() << "Not primary while updating " << nsString.ns(),
- !request.shouldCallLogOp() || isMasterNs(nsString.ns().c_str()));
+ !request.shouldCallLogOp() || replset::isMasterNs(nsString.ns().c_str()));
while (true) {
// Get next doc, and location
@@ -668,7 +668,7 @@ namespace mongo {
// Call logOp if requested.
if (request.shouldCallLogOp() && !logObj.isEmpty()) {
BSONObj idQuery = driver->makeOplogEntryQuery(newObj, request.isMulti());
- logOp(txn, "u", nsString.ns().c_str(), logObj , &idQuery,
+ replset::logOp(txn, "u", nsString.ns().c_str(), logObj , &idQuery,
NULL, request.isFromMigration());
}
@@ -782,8 +782,8 @@ namespace mongo {
!request.isGod() /*enforceQuota*/);
uassertStatusOK(newLoc.getStatus());
if (request.shouldCallLogOp()) {
- logOp(txn, "i", nsString.ns().c_str(), newObj,
- NULL, NULL, request.isFromMigration());
+ replset::logOp(txn, "i", nsString.ns().c_str(), newObj,
+ NULL, NULL, request.isFromMigration());
}
opDebug->nMatched = 1;