@@ -453,17 +453,16 @@ Status addMongodOptions(moe::OptionSection* options) {
453453 " configsvr" ,
454454 moe::Switch,
455455 " declare this is a config db of a cluster; default port 27019; "
456- " default dir /data/configdb; requires using --replSet " )
456+ " default dir /data/configdb" )
457457 .setSources (moe::SourceAllLegacy)
458458 .incompatibleWith (" shardsvr" )
459459 .incompatibleWith (" nojournal" );
460460
461461 sharding_options
462- .addOptionChaining (
463- " shardsvr" ,
464- " shardsvr" ,
465- moe::Switch,
466- " declare this is a shard db of a cluster; default port 27018; requires using --replSet" )
462+ .addOptionChaining (" shardsvr" ,
463+ " shardsvr" ,
464+ moe::Switch,
465+ " declare this is a shard db of a cluster; default port 27018" )
467466 .setSources (moe::SourceAllLegacy)
468467 .incompatibleWith (" configsvr" )
469468 .incompatibleWith (" master" )
@@ -1199,14 +1198,6 @@ Status storeMongodOptions(const moe::Environment& params) {
11991198 }
12001199 if (params.count (" sharding.clusterRole" )) {
12011200 auto clusterRoleParam = params[" sharding.clusterRole" ].as <std::string>();
1202-
1203- if (!params.count (" replication.replSet" ) && !Command::testCommandsEnabled) {
1204- return {ErrorCodes::InvalidOptions,
1205- str::stream () << " Cannot start a " << clusterRoleParam
1206- << " as a standalone server. Please start this node as a replica "
1207- " set using --replSet." };
1208- }
1209-
12101201 if (clusterRoleParam == " configsvr" ) {
12111202 serverGlobalParams.clusterRole = ClusterRole::ConfigServer;
12121203
0 commit comments