summaryrefslogtreecommitdiff
path: root/src/mongo/util/assert_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/assert_util.cpp')
-rw-r--r--src/mongo/util/assert_util.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/util/assert_util.cpp b/src/mongo/util/assert_util.cpp
index 9d40b1f5d62..500a8cbb5eb 100644
--- a/src/mongo/util/assert_util.cpp
+++ b/src/mongo/util/assert_util.cpp
@@ -232,10 +232,9 @@ NOINLINE_DECL void msgassertedWithLocation(int msgid,
const char* msg,
const char* file,
unsigned line) {
- assertionCount.condrollover(++assertionCount.warning);
+ assertionCount.condrollover(++assertionCount.msg);
log() << "Assertion: " << msgid << ":" << redact(msg) << ' ' << file << ' ' << dec << line
<< endl;
- logContext();
throw MsgAssertionException(msgid, msg);
}
@@ -243,7 +242,7 @@ NOINLINE_DECL void msgassertedNoTraceWithLocation(int msgid,
const char* msg,
const char* file,
unsigned line) {
- assertionCount.condrollover(++assertionCount.warning);
+ assertionCount.condrollover(++assertionCount.msg);
log() << "Assertion: " << msgid << ":" << redact(msg) << ' ' << file << ' ' << dec << line
<< endl;
throw MsgAssertionException(msgid, msg);