[SERVER-64850] Coverity analysis defect 121924: Uninitialized scalar field Created: 23/Mar/22  Updated: 29/Oct/23  Resolved: 07/Apr/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-03-23 at 5.26.19 PM.png    
Issue Links:
Problem/Incident
is caused by SERVER-63495 Support targeting remote shards from ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2022-04-04, Sharding NYC 2022-04-18
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/s/commands/cluster_write_cmd.h:127: UNINIT_CTOR 121924 Class member declaration for "_bypass".
/src/mongo/s/commands/cluster_write_cmd.h:81: UNINIT_CTOR 121924 Non-static class member "_bypass" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-64850 Remove unused member variable
Branch: master
https://github.com/mongodb/mongo/commit/17c2a28282ba790157a32b97c76b516c4a426b7e

Generated at Thu Feb 08 06:01:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.