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

Coverity analysis defect 72818: Unchecked return value

    XMLWordPrintableJSON

Details

    • ALL
    • Platform 9 (09/18/15)

    Description

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

      Defect 72818 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/client/replica_set_monitor.cpp
      Function mongo::<unnamed>::ReplicaSetMonitorWatcher::run()
      /src/mongo/client/replica_set_monitor.cpp, line: 130
      Calling "wait_for" without checking return value (as is done elsewhere 7 out of 10 times).

                      _stopRequestedCV.wait_for(sl, stdx::chrono::seconds(10));

      File: /src/mongo/client/replica_set_monitor.cpp
      Function mongo::<unnamed>::ReplicaSetMonitorWatcher::run()
      /src/mongo/client/replica_set_monitor.cpp, line: 154
      Calling "wait_for" without checking return value (as is done elsewhere 7 out of 10 times).

                      _stopRequestedCV.wait_for(sl, stdx::chrono::seconds(10));

      Attachments

        Activity

          People

            adam.midvidy Adam Midvidy
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: