[SERVER-68171] Do not initialize ShardRegistry with an empty placeholder Created: 20/Jul/22 Updated: 29/Oct/23 Resolved: 21/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Improvement | 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-07-25 |
| Participants: |
| Description |
|
Currently the ShardRegistry is initialized with an empty data placeholder. This is not necessary, in fact the ShardRegistry is built on top of the ReadThroughCache that will populate the cache with correct data on the first lookup. Removing this fake initialization of the cache will make the code cleaner, easier to understand and easier to maintain. |
| Comments |
| Comment by Githook User [ 21/Jul/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |