[SERVER-57083] Coverity analysis defect 120111: Parse warning Created: 20/May/21  Updated: 29/Oct/23  Resolved: 20/May/21

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

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

Issue Links:
Related
is related to SERVER-56002 listIndexes can read partial state fr... Closed
is related to SERVER-56023 listCollections can return empty meta... Closed
is related to SERVER-53675 Allow validate to fix up multikey met... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Parse warning

A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice
/src/mongo/db/catalog/index_catalog_entry_impl.cpp:276: PW.PARAMETER_HIDDEN 120111 declaration hides parameter "isMultikey" (declared at line 258)



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Henrik Edin [ 20/May/21 ]

Fixed by SERVER-56023

Comment by Benety Goh [ 20/May/21 ]

This coverity bug affects 5.0 only. The original coverity defect should have been flagged when we added forceIsMultikey() in SERVER-53675.

The same line is expected to be modified in SERVER-56002 and SERVER-56023. Maybe we can fix this defect under those tickets.

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