[SERVER-44394] Coverity analysis defect 113954: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE Created: 04/Nov/19  Updated: 29/Oct/23  Resolved: 05/Nov/19

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Mihai Andrei
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: Query 2019-11-18
Participants:

 Description   

PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE

Defect 113954 (STATIC_C)
Checker PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE (subcategory none)
File: /src/mongo/db/commands/map_reduce_out_options.h
Parse Warning (no function name available)
/src/mongo/db/commands/map_reduce_out_options.h, line: 97
type qualifier on return type is meaningless

        const bool isSharded() const {



 Comments   
Comment by Githook User [ 05/Nov/19 ]

Author:

{'email': 'mihai.andrei@mongodb.com', 'name': 'Mihai Andrei'}

Message: SERVER-44394 Remove const qualifier from return type of MapReduceOutOptions::isSharded()
Branch: master
https://github.com/mongodb/mongo/commit/c5586f6b8da6fd37abf76994cc796afa23d2b7b6

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