[SERVER-38743] Coverity analysis defect 105209: PW.PARAMETER_HIDDEN Created: 21/Dec/18  Updated: 29/Oct/23  Resolved: 07/Jan/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.7

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-01-14
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 105209 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/db/commands/restart_catalog_command.cpp
Parse Warning (no function name available)
/src/mongo/db/commands/restart_catalog_command.cpp, line: 101
declaration hides parameter "db" (declared at line 89)

                const auto db = databaseHolder->getDb(opCtx, dbName);



 Comments   
Comment by Githook User [ 07/Jan/19 ]

Author:

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

Message: SERVER-38743 rename unused argument to RestartCatalogCmd::run()
Branch: master
https://github.com/mongodb/mongo/commit/e139a33d9f872f8e850f85a39294814803e6ccc3

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