Coverity analysis defect 101783: Unchecked return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 101783 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/repl/sync_tail.cpp
      Function mongo::repl::multiInitialSyncApply_noAbort(mongo::OperationContext *, std::vector<const mongo::repl::OplogEntry *, std::allocator<const mongo::repl::OplogEntry *>> *, mongo::repl::SyncTail *, mongo::AtomicWord<unsigned int> *)
      /src/mongo/db/repl/sync_tail.cpp, line: 1192
      Calling "fetchAndInsertMissingDocument" without checking return value (as is done elsewhere 2 out of 4 times).

                          st->fetchAndInsertMissingDocument(opCtx, entry.raw);
      

              Assignee:
              Judah Schvimer
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: