Coverity analysis defect 72739: Unchecked return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 72739 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/repl/data_replicator.cpp
      Function mongo::repl::DataReplicator::_onOplogFetchFinish(const mongo::StatusWith<mongo::repl::Fetcher::BatchData> &, mongo::repl::Fetcher::NextAction *)
      /src/mongo/db/repl/data_replicator.cpp, line: 1357
      Calling "setFollowerMode" without checking return value (as is done elsewhere 7 out of 8 times).

                                  _replCoord->setFollowerMode(MemberState::RS_RECOVERING); // TODO too stale
      

            Assignee:
            Benety Goh
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: