[SERVER-37380] Coverity analysis defect 105056: Uninitialized scalar field Created: 28/Sep/18  Updated: 29/Oct/23  Resolved: 02/Oct/18

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Gregory Wlodarek
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: Storage NYC 2018-10-08
Participants:

 Description   

A scalar field is not initialized by the constructor

Defect 105056 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/db/storage/biggie/biggie_kv_engine.h
Function mongo::biggie::KVEngine::KVEngine()
/src/mongo/db/storage/biggie/biggie_kv_engine.h, line: 155
Class member declaration for "_cachePressureForTest".

        int _cachePressureForTest;

/src/mongo/db/storage/biggie/biggie_kv_engine.h, line: 52
Non-static class member "_cachePressureForTest" is not initialized in this constructor nor in any functions that it calls.

        KVEngine() : ::mongo::KVEngine() {}



 Comments   
Comment by Githook User [ 02/Oct/18 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-37380 Fix uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/e74ff7028c06686611eb4652a80a212bf14e3757

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