diff options
author | Yu Jin Kang Park <yujin.kang@mongodb.com> | 2022-06-15 13:19:49 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-06 12:17:47 +0000 |
commit | 574d60b493f71e6433a784dc3a2a8fd3fed171a1 (patch) | |
tree | 0ec8447e2cf81fa33f7729f779afe649ab0f344f /src/mongo/db/mongod_options.cpp | |
parent | 02dfedb849374159219251422ada6035333e2c3b (diff) | |
download | mongo-574d60b493f71e6433a784dc3a2a8fd3fed171a1.tar.gz |
SERVER-55208: Remove nojournal,duroff and evergreen variant
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r-- | src/mongo/db/mongod_options.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp index 48099fb01e5..b528a315b62 100644 --- a/src/mongo/db/mongod_options.cpp +++ b/src/mongo/db/mongod_options.cpp @@ -161,11 +161,6 @@ Status validateMongodOptions(const moe::Environment& params) { return ret; } - if (params.count("nojournal") && params.count("storage.journal.enabled")) { - return Status(ErrorCodes::BadValue, - "Can't specify both --journal and --nojournal options."); - } - #ifdef _WIN32 if (params.count("install") || params.count("reinstall")) { if (params.count("storage.dbPath") && @@ -210,18 +205,6 @@ Status canonicalizeMongodOptions(moe::Environment* params) { return ret; } - if (params->count("nojournal")) { - Status ret = - params->set("storage.journal.enabled", moe::Value(!(*params)["nojournal"].as<bool>())); - if (!ret.isOK()) { - return ret; - } - ret = params->remove("nojournal"); - if (!ret.isOK()) { - return ret; - } - } - // "security.authorization" comes from the config file, so override it if "auth" is // set since those come from the command line. if (params->count("auth")) { @@ -447,14 +430,7 @@ Status storeMongodOptions(const moe::Environment& params) { storageGlobalParams.groupCollections = params["storage.groupCollections"].as<bool>(); } - if (params.count("storage.journal.enabled")) { - storageGlobalParams.dur = params["storage.journal.enabled"].as<bool>(); - } - if (params.count("storage.journal.commitIntervalMs")) { - // don't check if dur is false here as many will just use the default, and will default - // to off on win32. ie no point making life a little more complex by giving an error on - // a dev environment. auto journalCommitIntervalMs = params["storage.journal.commitIntervalMs"].as<int>(); storageGlobalParams.journalCommitIntervalMs.store(journalCommitIntervalMs); if (journalCommitIntervalMs < 1 || @@ -643,12 +619,6 @@ Status storeMongodOptions(const moe::Environment& params) { << "enableMajorityReadConcern=false", serverGlobalParams.enableMajorityReadConcern); - // If we haven't explicitly specified a journal option, default journaling to true for - // the config server role - if (!params.count("storage.journal.enabled")) { - storageGlobalParams.dur = true; - } - if (!params.count("storage.dbPath")) { storageGlobalParams.dbpath = storageGlobalParams.kDefaultConfigDbPath; } @@ -691,13 +661,6 @@ Status storeMongodOptions(const moe::Environment& params) { } #endif - // Check if we are 32 bit and have not explicitly specified any journaling options - if (sizeof(void*) == 4 && !params.count("storage.journal.enabled")) { - LOGV2_WARNING(20880, - "32-bit servers don't have journaling enabled by default. Please use " - "--journal if you want durability"); - } - bool isClusterRoleShard = params.count("shardsvr"); bool isClusterRoleConfig = params.count("configsvr"); if (params.count("sharding.clusterRole")) { |