It looks there is already code trying to do this:
https://github.com/mongodb/mongo/blob/r3.3.5/src/mongo/db/mongod_options.cpp#L651
for (const auto& disallowedOption : {"replSet", "configSvr", "upgrade", "repair", "profile", "master", "slave", "source", "only", "slavedelay", "journal", "storage.journal.enabled", "dur", "autoresync", "fastsync"}) { if (params.count(disallowedOption)) { return Status(ErrorCodes::BadValue, str::stream() << "Cannot specify both --queryableBackupMode and --" << disallowedOption); } }
But it should be "replication.replSet" and not "replSet" we should also check the other parameters if they also need to be corrected
- related to
-
SERVER-23939 replSetInitiate hangs when running in queryableBackupMode mode instead of returning an error
- Closed