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

Always initialize the numInserted out-parameter in AbstractIndexAccessMethod::insertKeys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0, 4.4.2, 4.2.11
    • Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Query 2020-11-02
    • 46

    Description

      Callers may pass an uninitialized int64 value as an out-parameter to AbstractIndexAccessMethod::insertKeys. In cases where the method returns early with an exception, this can result in the random contents of the int64 being added to the OpDebug metrics.

      Attachments

        Activity

          People

            bernard.gorman@mongodb.com Bernard Gorman
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: