summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2019-06-03 14:55:47 -0400
committerJudah Schvimer <judah@mongodb.com>2019-06-04 10:10:48 -0400
commite2e5dc658a07561bca8bfc419f23d2fdac220561 (patch)
tree2dc362577d891b54a7869d03f9df09ac92930081
parent648462823257e0a987db9138f84c26a366816f43 (diff)
downloadmongo-e2e5dc658a07561bca8bfc419f23d2fdac220561.tar.gz
SERVER-39293 Correct string literals for oplog collection namespace
(cherry picked from commit 4156b6a9a75131e7d038712279cc7aacdd7c5403)
-rw-r--r--src/mongo/db/read_concern_mongod.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/mongo/db/read_concern_mongod.cpp b/src/mongo/db/read_concern_mongod.cpp
index de45682e0f4..65b27493c33 100644
--- a/src/mongo/db/read_concern_mongod.cpp
+++ b/src/mongo/db/read_concern_mongod.cpp
@@ -388,14 +388,18 @@ MONGO_REGISTER_SHIM(waitForLinearizableReadConcern)
"No longer primary when waiting for linearizable read concern"};
}
- writeConflictRetry(opCtx, "waitForLinearizableReadConcern", "local.rs.oplog", [&opCtx] {
- WriteUnitOfWork uow(opCtx);
- opCtx->getClient()->getServiceContext()->getOpObserver()->onOpMessage(
- opCtx,
- BSON("msg"
- << "linearizable read"));
- uow.commit();
- });
+ writeConflictRetry(
+ opCtx,
+ "waitForLinearizableReadConcern",
+ NamespaceString::kRsOplogNamespace.ns(),
+ [&opCtx] {
+ WriteUnitOfWork uow(opCtx);
+ opCtx->getClient()->getServiceContext()->getOpObserver()->onOpMessage(
+ opCtx,
+ BSON("msg"
+ << "linearizable read"));
+ uow.commit();
+ });
}
WriteConcernOptions wc = WriteConcernOptions(
WriteConcernOptions::kMajority, WriteConcernOptions::SyncMode::UNSET, readConcernTimeout);