diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-03-31 19:11:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-31 20:39:27 +0000 |
commit | 2f2806eb4ca08b67392b6acc5d23c16e598c5f29 (patch) | |
tree | 971c02164d77b4b092f11c40d4a530d66fda9bab /src/mongo/db/mongod_options.cpp | |
parent | 307f3716159ff776f5d93250743620fd62d0ca08 (diff) | |
download | mongo-2f2806eb4ca08b67392b6acc5d23c16e598c5f29.tar.gz |
SERVER-64132 Make shardsvrs running in serverless mode always return "unsharded" filtering metadata
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r-- | src/mongo/db/mongod_options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp index dd8d6d5c491..d474782085c 100644 --- a/src/mongo/db/mongod_options.cpp +++ b/src/mongo/db/mongod_options.cpp @@ -624,8 +624,8 @@ Status storeMongodOptions(const moe::Environment& params) { } if (params.count("sharding.clusterRole")) { auto clusterRoleParam = params["sharding.clusterRole"].as<std::string>(); - const bool replicationEnabled = - params.count("replication.replSet") || params.count("replication.replSetName"); + const bool replicationEnabled = params.count("replication.replSet") || + params.count("replication.replSetName") || params.count("replication.serverless"); // Force to set up the node as a replica set, unless we're a shard and we're using queryable // backup mode. if ((clusterRoleParam == "configsvr" || !params.count("storage.queryableBackupMode")) && |