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

Make __wt_debug_cursor_page print the history store for checkpoints

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.0.0, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The debug code skips opening (and printing from) the history store if reading from a checkpoint and the session doesn't have a hs_checkpoint set. It will only be set by default when stopped in the middle of an operation on a checkpoint cursor; otherwise (such as the page dumps generated by test_format on failure) it won't be.

      We can make wt_debug_cursor_page temporarily substitute in the right checkpoint name when called on a checkpoint cursor. This will make history store entries appear again.

      It would be nice to do this in wt_debug_page as well, but there is no reasonable way to get the information. (The correct identity of the matching history store checkpoint is not a property of the tree or the page, only of the global checkpoint, and consequently isn't available.)

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            dholland+wt@sauclovia.org David Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: