[SERVER-63988] Remove reduntant ShardDatabaseType Created: 25/Feb/22  Updated: 29/Oct/23  Resolved: 01/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-03-07
Participants:

 Description   

There is no difference between ShardDatabaseType and DatabaseType. In particular entries in config.cache.databases could have the enterCriticalSectionCounter additional field. This field is always modified manually and is not part of the serialization/deserialization of ShardDatabaseType . So we can just remove ShardDatabaseType and directly usee DatabaseType also on shards.



 Comments   
Comment by Githook User [ 28/Feb/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-63988 Remove reduntant ShardDatabaseType
Branch: master
https://github.com/mongodb/mongo/commit/45775201e27bbc4dcc6ea98bccb25ebfc7d964c9

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