diff options
Diffstat (limited to 'src/mongo/db/d_concurrency.cpp')
-rwxr-xr-x | src/mongo/db/d_concurrency.cpp | 2 |
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"); } } |