diff options
-rw-r--r-- | src/btree/bt_split.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/btree/bt_split.c b/src/btree/bt_split.c index 69dbfb42354..395ff447035 100644 --- a/src/btree/bt_split.c +++ b/src/btree/bt_split.c @@ -728,6 +728,14 @@ __split_multi_inmem( */ page->modify->first_dirty_txn = WT_TXN_FIRST; + /* + * XXX Don't allow this page to be evicted immediately. + * + * In some cases involving forced eviction during truncates, a reader + * ends up looking at an evicted page. This is a temporary workaround. + */ + page->modify->inmem_split_txn = __wt_txn_new_id(session); + err: /* Free any resources that may have been cached in the cursor. */ WT_TRET(__wt_btcur_close(&cbt)); |