Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26060

Coverity analysis defect 99881: Redundant test

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

      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@mongodb.com Michael Cahill (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: