Use check and reset macro to refactor existing code.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • WT12.0.0
    • Affects Version/s: None
    • Component/s: Not Applicable
    • None
    • Storage Engines, Storage Engines - Persistence
    • SE Persistence backlog
    • None

      Use new macro WT_CHECK_AND_RESET to replace existing code like

      if(ret == WT_NOTFOUND){
          // do something
          ret = 0;
      }

      ->

      if(WT_CHECK_AND_RESET(ret, WT_NOTFOUND)){
          // do something
      }

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Albert Song
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: