Skip to content

Commit 5ac1a08

Browse files
committed
no try lock in old bost versions
1 parent d79f8e1 commit 5ac1a08

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

db/concurrency.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,9 @@ namespace mongo {
262262
}
263263

264264
bool lock_try(){
265-
bool got = m.try_lock();
266-
if ( got ){
267-
_minfo.entered();
268-
}
269-
return got;
265+
// old boost doesn't have try_lock :(
266+
lock();
267+
return true;
270268
}
271269

272270
void releaseEarly() {

0 commit comments

Comments
 (0)