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

Coverity analysis defect 100628: Assign instead of compare

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • ALL
    • Query 2017-05-08

      An assignment (=) occurs where compare (==) is probably intended

      Defect 100628 (STATIC_C)
      Checker PW.ASSIGN_WHERE_COMPARE_MEANT (subcategory none)
      File: /src/mongo/db/query/plan_executor.cpp
      Parse Warning (no function name available)
      /src/mongo/db/query/plan_executor.cpp, line: 241
      use of "=" where "==" may have been intended

              invariant(_currentState = kDisposed);
      

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: