diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-08-13 19:36:56 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-08-13 19:36:56 -0400 |
commit | 368f622ba7e7eaca691ba4a4a433c614709bdbea (patch) | |
tree | ba6b240debade7e04335658cd95342ffc1a4c5b5 /src/evict | |
parent | 7c1abeab21aa31f4b73f1974a6cbdd56cea0bc7c (diff) | |
download | mongo-368f622ba7e7eaca691ba4a4a433c614709bdbea.tar.gz |
Rename atomic functions from number of bytes to number of bits.
Diffstat (limited to 'src/evict')
-rw-r--r-- | src/evict/evict_lru.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index a542cb89018..7827c3e6285 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -972,7 +972,7 @@ retry: while (slot < max_entries && ret == 0) { } else { if (incr) { WT_ASSERT(session, dhandle->session_inuse > 0); - (void)__wt_atomic_subi4( + (void)__wt_atomic_subi32( &dhandle->session_inuse, 1); incr = 0; } @@ -1017,7 +1017,7 @@ retry: while (slot < max_entries && ret == 0) { btree->evict_walk_skips = 0; prev_slot = slot; - (void)__wt_atomic_addi4(&dhandle->session_inuse, 1); + (void)__wt_atomic_addi32(&dhandle->session_inuse, 1); incr = 1; __wt_spin_unlock(session, &conn->dhandle_lock); dhandle_locked = 0; @@ -1052,7 +1052,7 @@ retry: while (slot < max_entries && ret == 0) { cache->evict_file_next = dhandle; WT_ASSERT(session, dhandle->session_inuse > 0); - (void)__wt_atomic_subi4(&dhandle->session_inuse, 1); + (void)__wt_atomic_subi32(&dhandle->session_inuse, 1); incr = 0; } @@ -1321,7 +1321,7 @@ __evict_get_ref( * multiple attempts to evict it. For pages that are already * being evicted, this operation will fail and we will move on. */ - if (!__wt_atomic_casv4( + if (!__wt_atomic_casv32( &evict->ref->state, WT_REF_MEM, WT_REF_LOCKED)) { __evict_list_clear(session, evict); continue; @@ -1331,7 +1331,7 @@ __evict_get_ref( * Increment the busy count in the btree handle to prevent it * from being closed under us. */ - (void)__wt_atomic_addv4(&evict->btree->evict_busy, 1); + (void)__wt_atomic_addv32(&evict->btree->evict_busy, 1); *btreep = evict->btree; *refp = evict->ref; @@ -1410,7 +1410,7 @@ __evict_page(WT_SESSION_IMPL *session, int is_server) WT_WITH_BTREE(session, btree, ret = __wt_evict_page(session, ref)); - (void)__wt_atomic_subv4(&btree->evict_busy, 1); + (void)__wt_atomic_subv32(&btree->evict_busy, 1); WT_RET(ret); |