summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h
index 078aa9b6284..812b2ef6689 100644
--- a/src/mongo/db/repl/replication_coordinator.h
+++ b/src/mongo/db/repl/replication_coordinator.h
@@ -270,13 +270,15 @@ public:
* NOTE: This function can only be meaningfully called while the caller holds the
* ReplicationStateTransitionLock in some mode other than MODE_NONE.
*/
- virtual bool canAcceptWritesForDatabase(OperationContext* opCtx, StringData dbName) = 0;
+ virtual bool canAcceptWritesForDatabase(OperationContext* opCtx,
+ const DatabaseName& dbName) = 0;
/**
* Version which does not check for the RSTL. Do not use in new code. Without the RSTL, the
* return value may be inaccurate by the time the function returns.
*/
- virtual bool canAcceptWritesForDatabase_UNSAFE(OperationContext* opCtx, StringData dbName) = 0;
+ virtual bool canAcceptWritesForDatabase_UNSAFE(OperationContext* opCtx,
+ const DatabaseName& dbName) = 0;
/**
* Returns true if it is valid for this node to accept writes on the given namespace.