summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-11-13 16:14:49 +0000
committerevergreen <evergreen@mongodb.com>2019-11-13 16:14:49 +0000
commit094f49707819a7a5029e514824bef85f71e79c13 (patch)
tree609fd679c6ee5b1a574b8d91634742344f8f8cb0
parent7706cef78c934916b2625e109571875dec8af7ac (diff)
downloadmongo-094f49707819a7a5029e514824bef85f71e79c13.tar.gz
SERVER-44584: Do not rewrite updates as modifies.
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp18
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;
}