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

KeyString::Value should report its memory usage as the total buffer capacity

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2019-09-09

      The external sorted uses memUsageForSorter to estimate when to spill to disk.

      KeyString::Value should report its memory usage as the total capacity of the underlying SharedBuffer rather than the number of bytes used out of the entire buffer length.

      This will probably require adding a "capacity()" function to ConstSharedBuffer to access into its underlying SharedBuffer.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: