[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: |
|
||||||||
| 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: |