[SERVER-73976] Optimize databases retrieval in CheckMetdataConsistency command Created: 14/Feb/23  Updated: 29/Oct/23  Resolved: 30/Mar/23

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

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

Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Instead of retrieving all existing databases from config server and then filter out the one for which the shard is not the primary we should directly retrieve only the databases we are interested in.

https://github.com/10gen/mongo/blob/8db424cac47919863d14a998835e3b3de09044bb/src/mongo/db/s/shardsvr_check_metadata_consistency_command.cpp#L112-L125



 Comments   
Comment by Githook User [ 30/Mar/23 ]

Author:

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

Message: SERVER-73976 Optimize databases retrieval in CheckMetdataConsistency command
Branch: master
https://github.com/mongodb/mongo/commit/d0a76b2b3ea3f5800cb9023fbb83830288569f8f

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