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

Simplify __rec_append_orig_value

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Chenhao Qu
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: