summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-06-14 09:35:35 -0400
committerBenety Goh <benety@mongodb.com>2017-06-14 16:53:08 -0400
commitce0cf6a2d32ac48f54a8e4bca0adf48a4916f9be (patch)
treed7eb4839ec3adb9d44392fd44843c015cc28f9e5
parentdf6004e7fccb743c60e20ba3798cc96aab6a413c (diff)
downloadmongo-ce0cf6a2d32ac48f54a8e4bca0adf48a4916f9be.tar.gz
SERVER-29277 oplog entries are never generated for operations on mmap-only system.namespaces collections
-rw-r--r--src/mongo/db/repl/replication_coordinator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.cpp b/src/mongo/db/repl/replication_coordinator.cpp
index 5f5869cf164..9c603c4db71 100644
--- a/src/mongo/db/repl/replication_coordinator.cpp
+++ b/src/mongo/db/repl/replication_coordinator.cpp
@@ -89,6 +89,11 @@ bool ReplicationCoordinator::isOplogDisabledFor(OperationContext* opCtx,
return true;
}
+ // <db>.system.namespaces is a MMAP-only collection and is not replicated.
+ if (nss.coll() == "system.namespaces"_sd) {
+ return true;
+ }
+
fassert(28626, opCtx->recoveryUnit());
return false;