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

Coverity analysis defect 100110: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2017-01-02

      Description

      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);

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: