Coverity analysis defect 104983: Unchecked return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Internal Code
    • Fully Compatible
    • ALL
    • Platforms 2018-09-24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 104983 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/transport/service_executor_reserved.cpp
      Function mongo::transport::ServiceExecutorReserved::_startWorker()::[lambda() (instance 1)]::operator ()() const::[lambda() (instance 1)]::operator ()() const
      /src/mongo/transport/service_executor_reserved.cpp, line: 90
      Calling "subtractAndFetch" without checking return value (as is done elsewhere 3 out of 6 times).

                      _numRunningWorkerThreads.subtractAndFetch(1);
      

            Assignee:
            Jonathan Reams
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: