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

Simplify __rec_append_orig_value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • None
    • None
    • 3

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              chenhao.qu@mongodb.com Chenhao Qu
              chenhao.qu@mongodb.com Chenhao Qu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: