diff options
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index e5d5f222c64..7e3eb5bd2f3 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -417,6 +417,8 @@ OpTime logOp(OperationContext* opCtx, StmtId statementId, const OplogLink& oplogLink) { auto replCoord = ReplicationCoordinator::get(opCtx); + // For commands, the test below is on the command ns and therefore does not check for + // specific namespaces such as system.profile. This is the caller's responsibility. if (replCoord->isOplogDisabledFor(opCtx, nss)) { invariant(statementId == kUninitializedStmtId); return {}; |