diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-10-26 08:14:32 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-10-26 08:14:32 +0000 |
commit | 82a6530951fd9af92820356d2e5de8b6be6b3778 (patch) | |
tree | 3f2da43e70d2a0973c623fc3ef7f2f7b5045e8ce /src/lsm | |
parent | 9c371c5a8487731fa5b1b1fa324cea1645242679 (diff) | |
download | mongo-82a6530951fd9af92820356d2e5de8b6be6b3778.tar.gz |
WT_ATOMIC_ADD/WT_ATOMIC_SUB return values.
Diffstat (limited to 'src/lsm')
-rw-r--r-- | src/lsm/lsm_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lsm/lsm_tree.c b/src/lsm/lsm_tree.c index c5f1d2c95de..d80901a4229 100644 --- a/src/lsm/lsm_tree.c +++ b/src/lsm/lsm_tree.c @@ -433,7 +433,7 @@ __wt_lsm_tree_get(WT_SESSION_IMPL *session, if (exclusive && lsm_tree->refcnt) return (EBUSY); - WT_ATOMIC_ADD(lsm_tree->refcnt, 1); + (void)WT_ATOMIC_ADD(lsm_tree->refcnt, 1); *treep = lsm_tree; return (0); } @@ -453,7 +453,7 @@ void __wt_lsm_tree_release(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree) { WT_ASSERT(session, lsm_tree->refcnt > 0); - WT_ATOMIC_SUB(lsm_tree->refcnt, 1); + (void)WT_ATOMIC_SUB(lsm_tree->refcnt, 1); } /* |