[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: |