[SERVER-71297] Coverity analysis defect 134120: Fix VersionType::currentVersion parsing Created: 13/Nov/22  Updated: 29/Oct/23  Resolved: 23/Nov/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 6.2.0-rc0
Fix Version/s: 6.2.0-rc2, 6.3.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Tommaso Tocci
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-68888 Remove deprecated fields from config.... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2
Sprint: Sharding EMEA 2022-11-28
Participants:

 Description   

Self assignment

The variable's value will not change, so the assignment has no effect. Assignment of a variable or expression to itself has no effect
/src/mongo/s/catalog/type_config_version.cpp:102: NO_EFFECT 134120 Assigning "version._currentVersion" to itself has no effect.



 Comments   
Comment by Githook User [ 23/Nov/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-71297 Coverity analysis defect 134120: Fix VersionType::currentVersion parsing

(cherry picked from commit 32bb6bed252aff3aab0254f8b8f9de3ea7669398)
Branch: v6.2
https://github.com/mongodb/mongo/commit/fa551f7ae3edddaf540133a546dfbe1001541602

Comment by Githook User [ 22/Nov/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-71297 Coverity analysis defect 134120: Fix VersionType::currentVersion parsing
Branch: master
https://github.com/mongodb/mongo/commit/32bb6bed252aff3aab0254f8b8f9de3ea7669398

Generated at Thu Feb 08 06:18:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.