[SERVER-57142] Coverity analysis defect 120120: Parse warning Created: 23/May/21  Updated: 29/Oct/23  Resolved: 08/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Repl 2021-06-14
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/read_write_concern_provenance.h:121: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE 120120 type qualifier on return type is meaningless



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-57142 Fix type qualifiers on return types in read_write_concern_provenance.h

(cherry picked from commit 3f00b0cd01d4231fd22820fe63bdae2511489eda)
Branch: v5.0
https://github.com/mongodb/mongo/commit/3216ffe95a12ff873aa2ea5bc01a693b16540de5

Comment by Samyukta Lanka [ 08/Jun/21 ]

I put the wrong ticket number on the commit associated with the ticket, here's a link to the commit:
https://github.com/mongodb/mongo/commit/3f00b0cd01d4231fd22820fe63bdae2511489eda

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