[SERVER-50237] Coverity analysis defect 30204: Uninitialized scalar field Created: 10/Aug/20  Updated: 29/Oct/23  Resolved: 24/Aug/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-09-07
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/storage/storage_options.h:125: UNINIT_CTOR 30204 Class member declaration for "disableLockFreeReads".
/src/mongo/db/storage/storage_options.cpp:41: UNINIT_CTOR 30204 Non-static class member "disableLockFreeReads" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 24/Aug/20 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-50237 Initialize StorageGlobalParams::disableLockFreeReads boolean
Branch: master
https://github.com/mongodb/mongo/commit/59673a165ff8112bcf4e97f1a188deccc3368a9a

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