[SERVER-56893] Coverity analysis defect 120046: Uninitialized scalar field Created: 12/May/21  Updated: 27/Oct/23  Resolved: 13/May/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Marcos José Grillo Ramirez
Resolution: Gone away Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Sharding EMEA 2021-05-17
Participants:

 Description   

Uninitialized scalar field

The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
/src/mongo/db/s/create_collection_coordinator.h:143: UNINIT_CTOR 120046 Class member declaration for "_collectionEmpty".
/src/mongo/db/s/create_collection_coordinator.cpp:325: UNINIT_CTOR 120046 Non-static class member "_collectionEmpty" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Marcos José Grillo Ramirez [ 13/May/21 ]

This was fixed by SERVER-56787.

Generated at Thu Feb 08 05:40:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.