diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-09-10 12:14:31 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-09-10 12:14:31 +1000 |
commit | 324056987aa77333031642d22bb5c5cd1b6173dd (patch) | |
tree | 4694838f5341e2bec1d1ec8c63608b0434b6eedc /src/include/mutex.i | |
parent | b82c978a1c27cf30cd929234095c4bf60e10b7ee (diff) | |
download | mongo-324056987aa77333031642d22bb5c5cd1b6173dd.tar.gz |
Fix the return value of trylock for GCC spinlocks.
Diffstat (limited to 'src/include/mutex.i')
-rw-r--r-- | src/include/mutex.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/mutex.i b/src/include/mutex.i index b249d65d695..f7b1fb93bb5 100644 --- a/src/include/mutex.i +++ b/src/include/mutex.i @@ -45,7 +45,7 @@ __wt_spin_trylock(WT_SESSION_IMPL *session, WT_SPINLOCK *t) { WT_UNUSED(session); - return (!__sync_lock_test_and_set(t, 1)); + return (__sync_lock_test_and_set(t, 1); } static inline void |