Operational Defect Database

BugZero found this defect 2419 days ago.

MongoDB | 403611

[SERVER-30125] Coverity analysis defect 76571: Nesting level does not match indentation

Last update date:

7/13/2017

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

The indentation of this code suggests it is nested when it is not. Defect 76571 (STATIC_C) Checker NESTING_INDENT_MISMATCH (subcategory none) File: /src/mongo/db/repl/oplog.cpp Function mongo::repl::truncateOplogTo(mongo::OperationContext *, mongo::Timestamp) /src/mongo/db/repl/oplog.cpp, line: 333 The indentation of this "else" clause to column 17 suggests that it was intended to go with the "if" statement indicated by the "intended_if" event, but it actually goes with the "if" indicated by the "actual_if" event because that "if" does not have any other "else" clause. /src/mongo/db/repl/oplog.cpp, line: 332 The indentation of the "else" clause indicated by the "dangling_else" event suggests it was intended to go with this "if" statement. /src/mongo/db/repl/oplog.cpp, line: 333 The "else" clause indicated by the "dangling_else" event actually goes with this "if" statement, contrary to what its indentation suggests.

Top User Comments

asya commented on Thu, 13 Jul 2017 15:46:34 +0000: this was a test of coverity integration

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:

...