Skip to content

Commit 592eddc

Browse files
committed
CXX-639 Don't make assert behavior build type dependent
1 parent c3242bf commit 592eddc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/mongo/util/assert_util.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ namespace mongo {
7272

7373
log() << "warning assertion failure " << expr << ' ' << file << ' ' << dec << line << endl;
7474
logContext();
75-
#if defined(MONGO_DEBUG_BUILD)
76-
// this is so we notice in buildbot
77-
log() << "\n\n***aborting after wassert() failure in a debug/test build\n\n" << endl;
78-
abort();
79-
#endif
8075
}
8176

8277
NOINLINE_DECL void verifyFailed(const char *expr, const char *file, unsigned line) {
@@ -85,11 +80,6 @@ namespace mongo {
8580
stringstream temp;
8681
temp << "assertion " << file << ":" << line;
8782
AssertionException e(temp.str(),0);
88-
#if defined(_DEBUG)
89-
// this is so we notice in buildbot
90-
log() << "\n\n***aborting after verify() failure as this is a debug/test build\n\n" << endl;
91-
abort();
92-
#endif
9383
throw e;
9484
}
9585

0 commit comments

Comments
 (0)