-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
1
When creating a new database, we let the user send a request like adminCommand({enableSharding: 'config', primaryShard: 'regularShardId'}) but then override the shardId for the db's primary shard to config.
We should use the same model as in regular databases and throw an error notifying the database is already created in a different primary shard, if the user-selected shard is not config.