[SERVER-37666] Coverity analysis defect 105081: Uninitialized scalar field index_catalog_impl.h IndexBuildBlock::_inProgress Created: 19/Oct/18  Updated: 29/Oct/23  Resolved: 26/Oct/18

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.1.5

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-11-05
Participants:

 Description   

A scalar field is not initialized by the constructor

Defect 105081 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/db/catalog/index_catalog_impl.cpp
Function mongo::IndexCatalogImpl::IndexBuildBlock::IndexBuildBlock(mongo::OperationContext , mongo::Collection *, mongo::IndexCatalogImpl, const mongo::BSONObj &)
/src/mongo/db/catalog/index_catalog_impl.h, line: 295
Class member declaration for "_inProgress".

            bool _inProgress;

/src/mongo/db/catalog/index_catalog_impl.cpp, line: 297
Non-static class member "_inProgress" is not initialized in this constructor nor in any functions that it calls.

    }



 Comments   
Comment by Githook User [ 26/Oct/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-37666 remove unused field from IndexBuildBlock

The last reference to this field was removed in commit 9134f4c4f376dc60a389b0d7f385802a49867bbe.
Branch: master
https://github.com/mongodb/mongo/commit/5096e2813942583fcfb6541e3559ad647b23ee9b

Comment by Benety Goh [ 26/Oct/18 ]

_inProgress was introduced in SERVER-12213 (commit ea5d43f) and the last reference was removed in SERVER-17030 (commit 9134f4c).

Generated at Thu Feb 08 04:46:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.