diff options
Diffstat (limited to 'src/mongo/db/command_can_run_here.cpp')
-rw-r--r-- | src/mongo/db/command_can_run_here.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/command_can_run_here.cpp b/src/mongo/db/command_can_run_here.cpp index 083b200a4a1..12126ae328f 100644 --- a/src/mongo/db/command_can_run_here.cpp +++ b/src/mongo/db/command_can_run_here.cpp @@ -42,7 +42,7 @@ bool commandCanRunHere(OperationContext* opCtx, const std::string& dbname, const return true; // primary: always ok if (!opCtx->writesAreReplicated()) return true; // standalone: always ok - switch (command->secondaryAllowed()) { + switch (command->secondaryAllowed(opCtx->getServiceContext())) { case Command::AllowedOnSecondary::kAlways: return true; case Command::AllowedOnSecondary::kNever: |