diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-06-08 11:18:23 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-06-08 11:18:23 -0400 |
commit | 5ac1a08dbb9532ad0e52af6ce6fe508d122f329f (patch) | |
tree | 78649463073d8e4e4c7b8c7520f7bfe4331c3821 | |
parent | d79f8e1ea1155774d0f10598253d4d814b307ad2 (diff) | |
download | mongo-5ac1a08dbb9532ad0e52af6ce6fe508d122f329f.tar.gz |
no try lock in old bost versions
-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() { |