diff options
author | Luke Chen <luke.chen@mongodb.com> | 2019-05-17 14:35:49 +1000 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2019-05-17 14:35:49 +1000 |
commit | 1d05d4b956221cfeb731892a4387d1470f999114 (patch) | |
tree | ffeff3027433530538a9214a1f87f3f9760a19c2 /src/third_party/wiredtiger/src/evict/evict_page.c | |
parent | 23ceef7c72f117ac0cc886447181d0f88433aefc (diff) | |
download | mongo-1d05d4b956221cfeb731892a4387d1470f999114.tar.gz |
Import wiredtiger: 5d321d0c6091636a2344ef9915ca06b0c078bda3 from branch mongodb-4.2
ref: a332548202..5d321d0c60
for: 4.1.12
WT-4768 Inconsistent data with lookaside eviction followed by sweep
WT-4769 Don't discard active history for empty pages
WT-4776 Modify operations should be equivalent to updates
WT-4778 MSVC build fails when optimisation is turned off
WT-4794 Mark lookaside history resolved in all paths
WT-4796 Enhance diagnostics that track ref state transitions
Diffstat (limited to 'src/third_party/wiredtiger/src/evict/evict_page.c')
-rw-r--r-- | src/third_party/wiredtiger/src/evict/evict_page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/evict/evict_page.c b/src/third_party/wiredtiger/src/evict/evict_page.c index 4f472b9c9c6..5618220774b 100644 --- a/src/third_party/wiredtiger/src/evict/evict_page.c +++ b/src/third_party/wiredtiger/src/evict/evict_page.c @@ -74,7 +74,7 @@ __wt_page_release_evict(WT_SESSION_IMPL *session, WT_REF *ref, uint32_t flags) */ previous_state = ref->state; if ((previous_state == WT_REF_MEM || previous_state == WT_REF_LIMBO) && - __wt_atomic_casv32(&ref->state, previous_state, WT_REF_LOCKED)) + WT_REF_CAS_STATE(session, ref, previous_state, WT_REF_LOCKED)) locked = true; if ((ret = __wt_hazard_clear(session, ref)) != 0 || !locked) { if (locked) |