diff options
-rw-r--r-- | db/concurrency.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/db/concurrency.h b/db/concurrency.h index e86021be828..40c96904cba 100644 --- a/db/concurrency.h +++ b/db/concurrency.h @@ -262,11 +262,9 @@ namespace mongo { } bool lock_try(){ - bool got = m.try_lock(); - if ( got ){ - _minfo.entered(); - } - return got; + // old boost doesn't have try_lock :( + lock(); + return true; } void releaseEarly() { |