[SERVER-48744] Convert ShardInfoMap to use unordered_map instead of map Created: 11/Jun/20  Updated: 29/Oct/23  Resolved: 13/Jul/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Alexander Taskov (Inactive) Assignee: Alexander Taskov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-48740 Modify ChunkMap to use std::vector in... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-07-13
Participants:

 Description   

Ensure that all calls to the getShardIdXXXX functions don't require an ordered collection. Change the std::map to a std::unordered_map. Also, the getShardIdXXXX functions all take a pointer to a std::set to return the shard IDs. This can be changed to return the collection. The returned collection should be changed from a std::set to a std::unordered_set.



 Comments   
Comment by Githook User [ 13/Jul/20 ]

Author:

{'name': 'Alex Taskov', 'email': 'alex.taskov@mongodb.com', 'username': 'alextaskov'}

Message: SERVER-48744 Convert ShardInfoMap to use unordered_map instead of map
Branch: master
https://github.com/mongodb/mongo/commit/ada8adeff4939b89b59eec1f8a86ecab9a32db2b

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