[SERVER-50029] Coverity analysis defect 115663: Uninitialized scalar variable Created: 30/Jul/20  Updated: 29/Oct/23  Resolved: 10/Aug/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.7.0, 4.4.2

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-08-24
Participants:

 Description   

Uninitialized scalar variable

The variable will contain an arbitrary value left from earlier computations. Use of an uninitialized variable
/src/mongo/db/catalog/index_catalog_impl.cpp:1466: UNINIT 115663 Declaring variable "keysDeleted" without initializer.



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

Author:

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

Message: SERVER-50029 Initialize 'keysInserted' and 'keysDeleted' in the index catalog

(cherry picked from commit cdfa5cb0834dc6d87b38591ae4b326a2439a755e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/775e721192d3cf620f4668a3787fd684e551b7bd

Comment by Githook User [ 10/Aug/20 ]

Author:

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

Message: SERVER-50029 Initialize 'keysInserted' and 'keysDeleted' in the index catalog
Branch: master
https://github.com/mongodb/mongo/commit/cdfa5cb0834dc6d87b38591ae4b326a2439a755e

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