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

Make the HS key human readable in HS verification

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • 2023-04-04 Bibbidi-Bobbidi-Boo, 2023-04-18 Leviosa Not Leviosa

      The following changes should show the key in a human-readable format:

      diff --git a/src/history/hs_verify.c b/src/history/hs_verify.c
      index e8db33f1b..2fa4f27a1 100644
      --- a/src/history/hs_verify.c
      +++ b/src/history/hs_verify.c
      @@ -75,7 +75,7 @@ __hs_verify_id(
                   F_SET(S2C(session), WT_CONN_DATA_CORRUPTION);
                   WT_ERR_PANIC(session, WT_PANIC,
                     "the associated history store key %s was not found in the data store %s",
      -              __wt_buf_set_printable(session, key.data, key.size, false, prev_key),
      +              __wt_key_string(session, key.data, key.size, S2BT(session)->key_format, &key),
                     session->dhandle->name);
               }
       

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: