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

Coverity analysis defect 72703: Redundant test

    • Fully Compatible
    • ALL

      Test always evaluates the same

      Defect 72703 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/conn/conn_api.c
      Function __wt_encryptor_config
      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
      At condition "locked", the value of "locked" must be equal to 1.

          	if (locked)
      

      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 417
      Assigning: "locked" = "1".

          	locked = 1;
      

      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
      The condition "locked" must be true.

          	if (locked)
      

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

              Created:
              Updated:
              Resolved: