[SERVER-72892] Use sendCommandToShards helper in checkMetadataConsistency command Created: 17/Jan/23  Updated: 29/Oct/23  Resolved: 23/Jan/23

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

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

Issue Links:
Depends
depends on SERVER-71823 Introduce new checkMetadataConsistenc... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-01-23
Participants:

 Description   

In shardsvr_check_metadata_consistency_command.cpp is building a std::vector<AsyncRequestsSender::Request> in order to send the internal command checkMetadataConsistencyParticipantRequest to all shards.

We should use the helper method sendCommandToShards from sharding_util.h, in order to not have repeated code and abstract code.



 Comments   
Comment by Githook User [ 23/Jan/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-72892 Use sendCommandToShards helper in checkMetadataConsistency command
Branch: master
https://github.com/mongodb/mongo/commit/d87dc510578b49b3ece44f16ac14e54d7166a634

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