Coverity analysis defect 99881: Redundant test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: WiredTiger
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Test always evaluates the same

      Defect 99881 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/evict/evict_lru.c
      Function __evict_get_ref
      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 1590
      At condition "is_app", the value of "is_app" must be equal to 1.

          		if (!urgent_ok && (is_server || (is_app &&
      

      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 1590
      The condition "is_app" must be true.

          		if (!urgent_ok && (is_server || (is_app &&
      

            Assignee:
            Michael Cahill (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: