[SERVER-25481] Coverity analysis defect 99831: Unchecked return value Created: 08/Aug/16  Updated: 11/Aug/16  Resolved: 11/Aug/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Siyuan Zhou
Resolution: Won't Fix Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 18 (08/05/16), Repl 2016-08-29
Participants:

 Description   

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

Defect 99831 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/repl/replication_coordinator_impl.cpp
Function mongo::repl::ReplicationCoordinatorImpl::WaiterInfoGuard::~WaiterInfoGuard()
/src/mongo/db/repl/replication_coordinator_impl.cpp, line: 219
Calling "remove_inlock" without checking return value (as is done elsewhere 1 out of 2 times).

            _list->remove_inlock(&waiter);



 Comments   
Comment by Eric Milkie [ 11/Aug/16 ]

I'll just mark it as Ignore in Coverity.

Comment by Siyuan Zhou [ 11/Aug/16 ]

milkie, we actually don't care about the return value. How can we can rid of this warning?

Generated at Thu Feb 08 04:09:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.