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

Code cleanup for curhs_remove and __txn_fixup_prepared_update

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • None
    • None
    • 1
    • Storage - Ra 2021-07-12

    Description

      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));
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: