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

Code cleanup for curhs_remove and __txn_fixup_prepared_update

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: