diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2019-11-13 16:14:49 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-13 16:14:49 +0000 |
commit | 094f49707819a7a5029e514824bef85f71e79c13 (patch) | |
tree | 609fd679c6ee5b1a574b8d91634742344f8f8cb0 | |
parent | 7706cef78c934916b2625e109571875dec8af7ac (diff) | |
download | mongo-094f49707819a7a5029e514824bef85f71e79c13.tar.gz |
SERVER-44584: Do not rewrite updates as modifies.
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp index 4962b4ea37a..dd5803d22e3 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp @@ -528,24 +528,6 @@ int WiredTigerUtil::verifyTable(OperationContext* opCtx, } bool WiredTigerUtil::useTableLogging(NamespaceString ns, bool replEnabled) { - if (!replEnabled) { - // All tables on standalones are logged. - return true; - } - - // Of the replica set configurations: - if (ns.db() != "local") { - // All replicated collections are not logged. - return false; - } - - if (ns.coll() == "replset.checkpointTimestamp" || ns.coll() == "replset.minvalid") { - // Of local collections, these two are derived from the state of the data and therefore - // are not logged. - return false; - } - - // The remainder of local gets logged. In particular, the oplog and user created collections. return true; } |