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

Check for null update in __wt_update_serial

    • 1
    • Storage - Ra 2022-04-18

      In src/include/serial_inline.h, __wt_update_serial dereferences upd before checking whether it's null:

       

      prev_upd_ts = WT_TS_NONE;
      prev_upd_ts = upd->prev_durable_ts;
      

      Seems like it should be prev_upd_ts = (upd == NULL) ? WT_TS_NONE : upd->prev_durable_ts;.

      Marking as minor since the two call sites seem to do appropriate checks.

       

            Assignee:
            andrew.morton@mongodb.com Andrew Morton
            Reporter:
            will.korteland@mongodb.com Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: