Coverity analysis defect 73042: Unchecked return value

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: