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

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

    • Query Execution

      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@mongodb.com Charlie Swanson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: