summaryrefslogtreecommitdiff
path: root/src/include/mutex.i
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-09-10 12:14:31 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-09-10 12:14:31 +1000
commit324056987aa77333031642d22bb5c5cd1b6173dd (patch)
tree4694838f5341e2bec1d1ec8c63608b0434b6eedc /src/include/mutex.i
parentb82c978a1c27cf30cd929234095c4bf60e10b7ee (diff)
downloadmongo-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.i2
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