[SERVER-18057] Coverity analysis defect 72274: Dereference null return value Created: 14/Apr/15  Updated: 16/Apr/15  Resolved: 16/Apr/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Eric Milkie
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
Participants:

 Description   

A new defect has been detected and assigned to milkie in Coverity Connect.
http://coverity.mongodb.com//sourcebrowser.htm?projectId=10001#mergedDefectId=72274
The defect was flagged by checker NULL_RETURNS in
file /src/mongo/db/repl/rs_rollback.cpp
function mongo::repl::<unnamed>::syncFixUp(mongo::OperationContext *, mongo::repl::<unnamed>::FixUpInfo &, mongo::repl::OplogReader *, mongo::repl::ReplicationCoordinator *)
and this ticket was created by samantha.ritter@10gen.com



 Comments   
Comment by Eric Milkie [ 16/Apr/15 ]

Since we're holding a global lock, collection can't be null here. This code is scheduled for full refactor for 3.2 anyway so I don't expect it to last long in its current form.

Generated at Thu Feb 08 03:46:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.