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

Coverity analysis defect 73042: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • ALL

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

      Defect 73042 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/exec/fetch.cpp
      Function mongo::FetchStage::doRestoreState()
      /src/mongo/db/exec/fetch.cpp, line: 169
      Calling "restore" without checking return value (as is done elsewhere 7 out of 13 times).

                  _cursor->restore();
      

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

              Created:
              Updated:
              Resolved: