uassert in IDHackStage if on failure to restore the underlying storage cursor (CID 73041)

XMLWordPrintableJSON

    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

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

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

                  _recordCursor->restore();
      

            Assignee:
            Charlie Swanson
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: