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

Coverity analysis defect 73038: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.8
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • ALL
    • QuInt 8 08/28/15

      Value returned from a function is not checked for errors before being used

      Defect 73038 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/query/plan_executor.cpp
      Function mongo::PlanExecutor::getNextImpl(mongo::Snapshotted<mongo::BSONObj> *, mongo::RecordId *)
      /src/mongo/db/query/plan_executor.cpp, line: 372
      Calling "yield" without checking return value (as is done elsewhere 2 out of 4 times).

                      _yieldPolicy->yield(fetcher.get());
      

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

              Created:
              Updated:
              Resolved: