From 826e020e3a23582c93c42a2986504ae567ff027f Mon Sep 17 00:00:00 2001 From: Geert Bosch Date: Fri, 8 Dec 2017 09:50:02 -0500 Subject: SERVER-29602 New OpObserverRegistry to allow multiple observers Also removes sharding specific interfaces for OpObserver. --- src/mongo/db/repl/oplog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mongo/db/repl/oplog.cpp') 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 {}; -- cgit v1.2.1