...
BugZero found this defect 2742 days ago.
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.
asya commented on Thu, 13 Jul 2017 15:46:34 +0000: this was a test of coverity integration