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

Fix another location of memory tracking underflow

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QE 2022-04-18, QE 2022-05-02, QE 2022-05-16
    • 120

      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.

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

              Created:
              Updated:
              Resolved: