[SERVER-18174] Coverity analysis defect 72639: Unchecked return value Created: 22/Apr/15  Updated: 19/Sep/15  Resolved: 29/Apr/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
Resolution: Done 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 kaloian.manassiev in Coverity Connect.
http://coverity.mongodb.com//sourcebrowser.htm?projectId=10001#mergedDefectId=72639
The defect was flagged by checker CHECKED_RETURN in
file /src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp
function mongo::CatalogManagerLegacy::getCollections(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<mongo::CollectionType, std::allocator<mongo::CollectionType>> *)
and this ticket was created by spencer



 Comments   
Comment by Githook User [ 29/Apr/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-18174 Call vector::clear instead of empty()
Branch: master
https://github.com/mongodb/mongo/commit/cf56e9bc62cab6cfcb06af83fb7a330ba6bb84e8

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