summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_options.h
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2019-03-15 16:15:03 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2019-03-19 11:43:25 -0400
commitdef336dd7510b42c7fbdea22030d0ef5c39bd541 (patch)
treef2d2897d015c088c257da6ee81e7785d56061bb9 /src/mongo/db/storage/storage_options.h
parent6fa88f8fe4fec7c1bdef30ddf1ef46163eab5a79 (diff)
downloadmongo-def336dd7510b42c7fbdea22030d0ef5c39bd541.tar.gz
SERVER-36772 Ensure oplog history cannot be truncated in standalone mode with the WT storage engine.
Adds an 'allowOplogTruncation' storageGlobalParam, which is set to false for standalones.
Diffstat (limited to 'src/mongo/db/storage/storage_options.h')
-rw-r--r--src/mongo/db/storage/storage_options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_options.h b/src/mongo/db/storage/storage_options.h
index 733808ce3c1..ceec92d42fb 100644
--- a/src/mongo/db/storage/storage_options.h
+++ b/src/mongo/db/storage/storage_options.h
@@ -109,6 +109,9 @@ struct StorageGlobalParams {
// an existing underlying MongoDB database level resource if possible. This can improve
// workloads that rely heavily on creating many collections within a database.
bool groupCollections;
+
+ // Controls whether we allow the OplogStones mechanism to delete oplog history on WT.
+ bool allowOplogTruncation = true;
};
extern StorageGlobalParams storageGlobalParams;