[SERVER-62386] Coverity analysis defect 121298: Parse warning Created: 06/Jan/22  Updated: 29/Oct/23  Resolved: 10/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.0.10

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

Issue Links:
Backports
Problem/Incident
is caused by SERVER-61003 ReadConcernMajorityNotAvailableYet er... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding EMEA 2022-01-24
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/s/client/shard_registry.cpp:448: PW.PARAMETER_HIDDEN 121298 declaration hides parameter "opCtx" (declared at line 440)



 Comments   
Comment by Githook User [ 11/Jul/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-62386 change variable name to avoid ambiguosity

(cherry picked from commit d0f32751e8ea82c49639d2b6cad982895897beb7)
Branch: v5.0
https://github.com/mongodb/mongo/commit/47d2c0a6db3d4d2968b9268eae67dc8575dbad2c

Comment by Githook User [ 10/Jan/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-62386 change variable name to avoid ambiguosity
Branch: master
https://github.com/mongodb/mongo/commit/d0f32751e8ea82c49639d2b6cad982895897beb7

Comment by Kaloian Manassiev [ 07/Jan/22 ]

Assigning to Pierlauro since he did the commit that introduced that shadow variable.

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