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

Coverity analysis defect 101783: Unchecked return value

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

      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@mongodb.com Judah Schvimer
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: