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

Code cleanup for curhs_remove and __txn_fixup_prepared_update

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2021-07-12

      When I was reading the code, I noticed that

      The brackets are redundant in __txn_fixup_prepared_update

      else {
              WT_ERR(hs_cursor->remove(hs_cursor));
          }
      

      and it should be remove instead of insert in curhs_remove function:

      CURSOR_API_CALL_PREPARE_ALLOWED(cursor, session, insert, CUR2BT(file_cursor));
      

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

              Created:
              Updated:
              Resolved: