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

Coverity analysis defect 104983: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.4
    • Component/s: Internal Code
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2018-09-24

      Description

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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: