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

Coverity analysis defect 114043: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Test always evaluates the same

      Defect 114043 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/include/btree.i
      Function __wt_bt_col_var_cursor_walk_txn_read
      /src/include/btree.i, line: 1745
      At condition "upd != NULL", the value of "upd" cannot be "NULL".

              if (upd != NULL && upd->type == WT_UPDATE_TOMBSTONE) {
      

      /src/include/btree.i, line: 1743
      Condition "upd == NULL", taking false branch. Now the value of "upd" is not "NULL".

              if (upd == NULL)
      

      /src/include/btree.i, line: 1745
      The condition "upd != NULL" must be true.

              if (upd != NULL && upd->type == WT_UPDATE_TOMBSTONE) {
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: