diff options
Diffstat (limited to 'src/mongo/db/command_can_run_here.cpp')
-rw-r--r-- | src/mongo/db/command_can_run_here.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/command_can_run_here.cpp b/src/mongo/db/command_can_run_here.cpp index 37089aefa68..1707e6035d7 100644 --- a/src/mongo/db/command_can_run_here.cpp +++ b/src/mongo/db/command_can_run_here.cpp @@ -38,11 +38,11 @@ namespace mongo { bool commandCanRunHere(OperationContext* opCtx, - const std::string& dbname, + const DatabaseName& dbName, const Command* command, bool inMultiDocumentTransaction) { auto replCoord = repl::ReplicationCoordinator::get(opCtx); - if (replCoord->canAcceptWritesForDatabase_UNSAFE(opCtx, dbname)) + if (replCoord->canAcceptWritesForDatabase_UNSAFE(opCtx, dbName)) return true; // primary: always ok if (!opCtx->writesAreReplicated()) return true; // standalone: always ok |