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

Do not use const_cast in sdamServerSelector::_getCandidateServers()

    • Sharding NYC
    • Fully Compatible
    • Sharding NYC 2023-07-24, Sharding NYC 2023-08-07
    • 2

      The server_selector uses a const_cast to update the passed in criteria in `sdamServerSelector::_getCandidateServers`. const_cast is not great to use because it is modifying a const reference that should not be modified. Right now this does not cause a bug, and is more of a code cleanup ticket.

            Assignee:
            kruti.shah@mongodb.com Kruti Shah
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: