diff options
author | Benety Goh <benety@mongodb.com> | 2017-06-14 09:35:35 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-06-14 16:53:08 -0400 |
commit | ce0cf6a2d32ac48f54a8e4bca0adf48a4916f9be (patch) | |
tree | d7eb4839ec3adb9d44392fd44843c015cc28f9e5 | |
parent | df6004e7fccb743c60e20ba3798cc96aab6a413c (diff) | |
download | mongo-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.cpp | 5 |
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; |