[SERVER-30656] Coverity analysis defect 101975: PW.PARAMETER_HIDDEN Created: 15/Aug/17  Updated: 30/Oct/23  Resolved: 25/Aug/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.5.13

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

Issue Links:
Problem/Incident
is caused by SERVER-30212 Use two phase drop for renameCollecti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2017-09-11
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 101975 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/db/catalog/rename_collection.cpp
Parse Warning (no function name available)
/src/mongo/db/catalog/rename_collection.cpp, line: 218
declaration hides parameter "options" (declared at line 79)

            CollectionOptions options = sourceColl->getCatalogEntry()->getCollectionOptions(opCtx);



 Comments   
Comment by Benety Goh [ 25/Aug/17 ]

This defect was introduced in:

Message: SERVER-30212 add RenameCollectionOptions
Branch: master
https://github.com/mongodb/mongo/commit/512fcfe0cd29d029c586589a3f1577a40123dc65

Comment by Githook User [ 25/Aug/17 ]

Author:

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

Message: SERVER-30656 renamed CollectionOptions local variable masking parameter name
Branch: master
https://github.com/mongodb/mongo/commit/08cb122cd8b381a3a73e389262380e54ac0d7ef6

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