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

Coverity analysis defect 73575: Unchecked return value

    • Fully Compatible
    • ALL
    • None
    • 0
    • 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@mongodb.com Benety Goh
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: