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

Coverity analysis defect 72697: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • Fully Compatible
    • ALL

    Description

      Test always evaluates the same

      Defect 72697 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/session/session_dhandle.c
      Function __wt_session_lock_dhandle
      /src/third_party/wiredtiger/src/session/session_dhandle.c, line: 160
      At condition "want_exclusive", the value of "want_exclusive" must be equal to 1.

          		if (ret != EBUSY || (is_open && want_exclusive))

      /src/third_party/wiredtiger/src/session/session_dhandle.c, line: 77
      Assigning: "want_exclusive" = "(flags & 8U) ? 1 : 0".

          	want_exclusive = LF_ISSET(WT_DHANDLE_EXCLUSIVE) ? 1 : 0;

      /src/third_party/wiredtiger/src/session/session_dhandle.c, line: 160
      The condition "want_exclusive" must be true.

          		if (ret != EBUSY || (is_open && want_exclusive))

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: