Coverity analysis defect 73575: Unchecked return value

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 73575 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/storage/record_store_test_randomiter.cpp
      Function mongo::UnitTest_RecordStoreTestHarness_GetRandomIteratorSingleton::_doTest()
      /src/mongo/db/storage/record_store_test_randomiter.cpp, line: 170
      Calling "restore" without checking return value (as is done elsewhere 7 out of 14 times).

                  cursor->restore();
      

            Assignee:
            Benety Goh
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: