Fix memory leak in fast truncate logging

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0, 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Truncate
    • None
    • Storage Engines - Foundations
    • 159.975
    • SE Foundations - 2026-05-08
    • 1

      Problem:

      When inserting an entry, there is logging of the start and stop keys. This requires allocating two buffers which are eventually used in __wt_key_string.

      Both buffers are allocated under a WT_RET, meaning that if the first buffer is allocated, but the second one fails, the first buffer leaks.

      Definition of Done:

      • Refactor/reorder/simplify the logging to remove the memory leak

            Assignee:
            Krishen Chovhan
            Reporter:
            Krishen Chovhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: