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

Coverity analysis defect 73579: Unchecked return value

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

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

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

                          versionManager.forceRemoteCheckShardVersionCB(txn, staleNS);
      

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: