-
Type: Bug
-
Resolution: Works as Designed
-
Priority: 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);
- is duplicated by
-
SERVER-35343 Coverity analysis defect 103593: Unchecked return value
- Closed