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

Add a data structure encapsulating user level truncate context

    • 3
    • Storage Engines - 2022-11-14, Storage Engines - 2022-11-28, Storage Engines - 2022-12-12, Storage Engines - 2023-01-10, StorEng - 2023-01-24, StorEng - 2023-02-07, 2023-02-23 "Stoney Baloney", 2023-03-21 Ellen Ripley, 2023-05-16 Chook-n-Nuts Farm
    • v7.0

      A truncate operation involves more context than many other operations, and is a bit unusual in that it is a data-modifying API on the WT_SESSION handle, rather than on a WT_CURSOR.

      For that reason the truncate implementation from an API layering perspective is a bit unusual. It can be complex to follow the logic about the API, and that's made more difficult because different parts of the truncate implementation take different sets of parameters.

      I propose that we create a new WT_TRUNCATE_INFO data structure to store context about the truncate operation. This was prompted by work on WT-9715

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: