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

Coverity analysis defect 103593: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.1
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2018-06-18

      Description

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

      Defect 103593 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/repl/sync_tail.cpp
      Function mongo::repl::multiSyncApply(mongo::OperationContext , std::vector<const mongo::repl::OplogEntry *, std::allocator<const mongo::repl::OplogEntry *>> *, mongo::repl::SyncTail *, std::vector<mongo::MultikeyPathInfo, std::allocator<mongo::MultikeyPathInfo>>)
      /src/mongo/db/repl/sync_tail.cpp, line: 1285
      Calling "fetchAndInsertMissingDocument" without checking return value (as is done elsewhere 2 out of 3 times).

                                  st->fetchAndInsertMissingDocument(opCtx, entry);

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: