Make the HS key human readable in HS verification

XMLWordPrintableJSON

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

      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
              Reporter:
              Etienne Petrel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: