summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern_mongod.cpp
diff options
context:
space:
mode:
authorChristopher Caplinger <christopher.caplinger@mongodb.com>2022-12-06 21:55:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-06 23:46:16 +0000
commit0e9ed24634b025de8b7a0f275be7c9303ccc7b1c (patch)
tree783e535c4dc5de8688e2217f8baf0400dd1ad7c2 /src/mongo/db/read_concern_mongod.cpp
parenta76507d369a9f3ff7db64896763151b025072897 (diff)
downloadmongo-0e9ed24634b025de8b7a0f275be7c9303ccc7b1c.tar.gz
SERVER-71873: Update access blocker util methods to use DatabaseName
Diffstat (limited to 'src/mongo/db/read_concern_mongod.cpp')
-rw-r--r--src/mongo/db/read_concern_mongod.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/read_concern_mongod.cpp b/src/mongo/db/read_concern_mongod.cpp
index 536dbec1741..3a286140ca6 100644
--- a/src/mongo/db/read_concern_mongod.cpp
+++ b/src/mongo/db/read_concern_mongod.cpp
@@ -110,7 +110,9 @@ private:
/**
* Schedule a write via appendOplogNote command to the primary of this replica set.
*/
-Status makeNoopWriteIfNeeded(OperationContext* opCtx, LogicalTime clusterTime, StringData dbName) {
+Status makeNoopWriteIfNeeded(OperationContext* opCtx,
+ LogicalTime clusterTime,
+ const DatabaseName& dbName) {
repl::ReplicationCoordinator* const replCoord = repl::ReplicationCoordinator::get(opCtx);
invariant(replCoord->isReplEnabled());
@@ -281,7 +283,7 @@ void setPrepareConflictBehaviorForReadConcernImpl(OperationContext* opCtx,
Status waitForReadConcernImpl(OperationContext* opCtx,
const repl::ReadConcernArgs& readConcernArgs,
- StringData dbName,
+ const DatabaseName& dbName,
bool allowAfterClusterTime) {
// If we are in a direct client within a transaction, then we may be holding locks, so it is
// illegal to wait for read concern. This is fine, since the outer operation should have handled