summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-12-08 09:50:02 -0500
committerGeert Bosch <geert@mongodb.com>2017-12-21 14:35:48 -0500
commit826e020e3a23582c93c42a2986504ae567ff027f (patch)
tree9ed1c76dd99d4d42c548b465f171c032832b3689 /src/mongo/db/repl/oplog.cpp
parentfb8046d813af032d6d51327affbab9b6199fe654 (diff)
downloadmongo-826e020e3a23582c93c42a2986504ae567ff027f.tar.gz
SERVER-29602 New OpObserverRegistry to allow multiple observers
Also removes sharding specific interfaces for OpObserver.
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp2
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 {};