summaryrefslogtreecommitdiff
path: root/src/mongo/client/distlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/distlock.h')
-rw-r--r--src/mongo/client/distlock.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/client/distlock.h b/src/mongo/client/distlock.h
index 44b54560fb4..f8b55cc66f8 100644
--- a/src/mongo/client/distlock.h
+++ b/src/mongo/client/distlock.h
@@ -227,7 +227,7 @@ namespace mongo {
~dist_lock_try() {
if ( _got ) {
- assert( ! _other.isEmpty() );
+ verify( ! _other.isEmpty() );
_lock->unlock( &_other );
}
}
@@ -237,9 +237,9 @@ namespace mongo {
}
bool retry() {
- assert( _lock );
- assert( _got );
- assert( ! _other.isEmpty() );
+ verify( _lock );
+ verify( _got );
+ verify( ! _other.isEmpty() );
return _got = _lock->lock_try( _why , true, &_other );
}