[SERVER-60810] Coverity analysis defect 120994: Parse warning Created: 19/Oct/21  Updated: 29/Oct/23  Resolved: 27/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sanika Phanse (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, sharding-nyc-subteam3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2021-11-01
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/s/transaction_coordinator.h:118: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE 120994 type qualifier on return type is meaningless



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-60810 Coverity analysis defect 120994: Parse warning
Branch: master
https://github.com/mongodb/mongo/commit/35073b37f2a165acbfc224db276b1afcb428c687

Comment by Jack Mulrow [ 22/Oct/21 ]

As part of this ticket, we should remove the const qualifier from this return type.

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