From 5ac1a08dbb9532ad0e52af6ce6fe508d122f329f Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Tue, 8 Jun 2010 11:18:23 -0400 Subject: no try lock in old bost versions --- db/concurrency.h | 8 +++----- 1 file 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() { -- cgit v1.2.1