summaryrefslogtreecommitdiff
path: root/src/mongo/db/d_concurrency.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/d_concurrency.cpp')
-rwxr-xr-xsrc/mongo/db/d_concurrency.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/d_concurrency.cpp b/src/mongo/db/d_concurrency.cpp
index a0e874160c6..83612e56c76 100755
--- a/src/mongo/db/d_concurrency.cpp
+++ b/src/mongo/db/d_concurrency.cpp
@@ -625,12 +625,14 @@ namespace mongo {
void MongoMutex::assertWriteLocked() const {
if( !isWriteLocked() ) {
lockState().dump();
+ dassert(false); // dassert will terminate buildbot
msgasserted(0, "expected write lock");
}
}
void MongoMutex::assertAtLeastReadLocked() const {
if( !atLeastReadLocked() ) {
lockState().dump();
+ dassert(false); // dassert will terminate buildbot
msgasserted(0, "expected read lock");
}
}