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

Coverity analysis defect 77704: Redundant test

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL

    Description

      Test always evaluates the same

      Defect 77704 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/schema/schema_create.c
      Function __create_index
      /src/third_party/wiredtiger/src/schema/schema_create.c, line: 553
      At condition "exists", the value of "exists" must be equal to 0.

          	if (!exists)

      /src/third_party/wiredtiger/src/schema/schema_create.c, line: 403
      Assigning: "exists" = "have_extractor = false".

          	exists = have_extractor = false;

      /src/third_party/wiredtiger/src/schema/schema_create.c, line: 553
      The condition "!exists" must be true.

          	if (!exists)

      Attachments

        Issue Links

          Activity

            People

              michael.cahill@mongodb.com Michael Cahill
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: