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

Coverity analysis defect 104983: Unchecked return value

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

      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@mongodb.com Jonathan Reams
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: