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

Coverity analysis defect 76731: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      QuInt C (11/23/15)

      Description

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

      Defect 76731 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/repl/sync_tail.cpp
      Function mongo::repl::SyncTail::OpQueueBatcher::getNextBatch(std::chrono::duration<long, std::ratio<(long)1, (long)1>>)
      /src/mongo/db/repl/sync_tail.cpp, line: 541
      Calling "wait_for" without checking return value (as is done elsewhere 7 out of 11 times).

                      _cv.wait_for(lk, maxWaitTime);

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: