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

Coverity analysis defect 76731: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Fully Compatible
    • ALL
    • QuInt C (11/23/15)

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

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: