[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: SERVER-68171 Do not initialized the ShardRegistry with an empty placeholder
Branch: master
https://github.com/mongodb/mongo/commit/808c61d3153241613acabe1da2058c26d434f152

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