Coverity analysis defect 73580: Redundant test

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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)
      

            Assignee:
            Keith Bostic (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: