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

abortDatabaseIndexBuilds uses operator[] to check for existence in a map

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-03-09

    Description

      IndexBuildsCoordinator::_abortDatabaseIndexBuilds() needs to be fixed to use .find() on the map rather than operator[], which default constructs an element if it isn't there already. The code erroneously assumes this behavior does not happen.

      Attachments

        Activity

          People

            milkie@mongodb.com Eric Milkie
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: