Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48744

Convert ShardInfoMap to use unordered_map instead of map

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-07-13

      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.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: