[SERVER-50879] Coverity analysis defect 115245: Uninitialized scalar field Created: 11/Sep/20  Updated: 29/Oct/23  Resolved: 17/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Alexander Taskov (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-09-21
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/start_chunk_clone_request.h:140: UNINIT_CTOR 115245 Class member declaration for "_txnNumber".
/src/mongo/db/s/start_chunk_clone_request.cpp:61: UNINIT_CTOR 115245 Non-static class member "_txnNumber" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 17/Sep/20 ]

Author:

{'name': 'Alex Taskov', 'email': 'alex.taskov@mongodb.com', 'username': 'alextaskov'}

Message: SERVER-50879 Coverity analysis defect 115245: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/39e27648fc04e2d0834f2ee5c01066f038fc59d2

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