Simplify __rec_append_orig_value

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 3

      In __rec_append_orig_value, we append a tombstone to the update chain if there is no cell.

      if (unpack == NULL || unpack->type == WT_CELL_DEL)
              WT_RET(__wt_update_alloc(session, NULL, &append, &size, WT_UPDATE_TOMBSTONE));
      

      I think this is no longer required in durable history and we don't need to append anything if there is no cell or the cell is deleted.

      Also we don't need to append the original value if the stop time pair is globally visible.

              Assignee:
              Chenhao Qu
              Reporter:
              Chenhao Qu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: