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

Coverity analysis defect 73580: Redundant test

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

      Test always evaluates the same

      Defect 73580 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/reconcile/rec_write.c
      Function __wt_reconcile
      /src/third_party/wiredtiger/src/reconcile/rec_write.c, line: 457
      At condition "scan_lock", the value of "scan_lock" must be equal to 1.

          	if (scan_lock)

      /src/third_party/wiredtiger/src/reconcile/rec_write.c, line: 407
      Assigning: "scan_lock" = "1".

          	scan_lock = 1;

      /src/third_party/wiredtiger/src/reconcile/rec_write.c, line: 457
      The condition "scan_lock" must be true.

          	if (scan_lock)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: