Operational Defect Database

BugZero found this defect 2440 days ago.

MongoDB | 396939

[SERVER-29791] Coverity analysis defect 101726: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.5.11

Description:

Info

PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE Defect 101726 (STATIC_C) Checker PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE (subcategory none) File: /src/mongo/s/catalog/type_shard_collection.h Parse Warning (no function name available) /src/mongo/s/catalog/type_shard_collection.h, line: 146 type qualifier on return type is meaningless const bool hasLastRefreshedCollectionVersion() const { /src/mongo/s/catalog/type_shard_collection.h, line: 146 During compilation of file '/data/src/mongo.master/src/mongo/db/s/collection_sharding_state.cpp' const bool hasLastRefreshedCollectionVersion() const {

Top User Comments

xgen-internal-githook commented on Tue, 1 Aug 2017 16:54:29 +0000: Author: {'email': 'dianna.hohensee@10gen.com', 'username': 'DiannaHohensee', 'name': 'Dianna Hohensee'} Message: SERVER-29791 changing meaningless 'const bool' return types to 'bool' in ShardCollectionType Branch: master https://github.com/mongodb/mongo/commit/6038769fb9bc0b00ca2aee1cc1e4d7beae3a7274

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...