Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6201

Release WT_CURSOR_BTREE buffers when caching a WT_CURSOR

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT10.0.0, 4.4.0-rc6, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • 3
    • Storage - Tora 2020-05-18

      When WT_CURSOR cursors are cached, we free their key/value buffers. However, those cursors are likely WT_CURSOR_BTREE cursors underneath, which hold up to 4 additional buffers, which should likely be freed as well.

      We could discard those buffers when WT_CURSOR.reset is called, but that may no be a good idea, given the frequency at which MongoDB server calls that function.

      Alternatively, we could add a new Btree level cache function.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: