[SERVER-50303] Coverity analysis defect 116160: Uninitialized scalar field Created: 13/Aug/20  Updated: 29/Oct/23  Resolved: 27/Aug/20

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

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-09-07
Participants:
Linked BF Score: 0

 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/repl/tenant_collection_cloner.h:221: UNINIT_CTOR 116160 Class member declaration for "_collectionClonerBatchSize".
/src/mongo/db/repl/tenant_collection_cloner.cpp:108: UNINIT_CTOR 116160 Non-static class member "_collectionClonerBatchSize" is not initialized in this constructor nor in any functions that it calls.



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

Author:

{'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'}

Message: SERVER-50303 Initialize tenant cloner batch size in contructor
Branch: master
https://github.com/mongodb/mongo/commit/ed3073ed0ae632bdb0e40fcdbd1d41dd84ec40aa

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