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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • None
    • Fully Compatible
    • Execution Team 2019-09-09

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: