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

Fix another location of memory tracking underflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • QE 2022-04-18, QE 2022-05-02, QE 2022-05-16
    • 120

    Description

      Memory tracking underflow can also happen here:

      https://github.com/mongodb/mongo/blob/e7544180078415f6dd6bce44b90033f2599abf52/src/mongo/db/pipeline/memory_usage_tracker.h#L157

      Previously this place is patched to prevent the underflow from happening:

      https://github.com/mongodb/mongo/blob/e7544180078415f6dd6bce44b90033f2599abf52/src/mongo/db/pipeline/memory_usage_tracker.h#L54

      The same fix should be applied to the first location as well.

      Attachments

        Issue Links

          Activity

            People

              rushan.chen@mongodb.com Rushan Chen
              rushan.chen@mongodb.com Rushan Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: