[SERVER-52812] Implement the enableSharding/implicit database creation path Created: 12/Nov/20  Updated: 29/Oct/23  Resolved: 21/Feb/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-52778 Add markers for all places where coll... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-02-22
Participants:
Linked BF Score: 15

 Description   

Remove the distributed lock in enableSharding.
Factorize code between enableSharding and configsrvCreateDbCommand.



 Comments   
Comment by Githook User [ 21/Feb/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52812 Unify the implicit createDatabase/enableSharding flow

This change makes both enableSharding and the implicit createDatabase
from the routers to go through the same _configsvrCreateDatabase
command. This command has the sole responsibility now of creating (or
ensuring it is created) a database with the specified name, optional
primary flag and optional enableSharding field.
Branch: master
https://github.com/mongodb/mongo/commit/d01febfefb28d3aab5305eb1dbcd6d047139c654

Generated at Thu Feb 08 05:29:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.