[SERVER-51360] Coverity analysis defect 111481: Uninitialized scalar field Created: 05/Oct/20  Updated: 29/Oct/23  Resolved: 23/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: bcn-neweng-ticket-pool, coverity, neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2021-05-03
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/sharding_state_recovery.cpp:134: UNINIT_CTOR 111481 The compiler-generated constructor for this class does not initialize "_minOpTimeUpdaters".



 Comments   
Comment by Githook User [ 23/Apr/21 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-51360 Fix Uninitialized scalar field defect raised by Coverity.
Branch: master
https://github.com/mongodb/mongo/commit/2bea3f474e66c15f4db6d19fc835f7350a3ee358

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