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

Coverity analysis defect 72615: Unchecked return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding E (01/08/16), Sharding F (01/29/16)

    Description

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

      Defect 72615 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/s/strategy.cpp
      Function mongo::Strategy::clientCommandOp(mongo::Request &)
      /src/mongo/s/strategy.cpp, line: 322
      Calling "forceRemoteCheckShardVersionCB" without checking return value (as is done elsewhere 1 out of 2 times).

                          if( loops < 4 ) versionManager.forceRemoteCheckShardVersionCB( staleNS );

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: