Coverity analysis defect 100110: Unchecked return value

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: