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

Coverity analysis defect 100110: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-01-02

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

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

                          versionManager.forceRemoteCheckShardVersionCB(txn, staleNS);
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: