Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT-3683 WT tests failing with cache full of clean pages #3756

Merged
merged 1 commit into from Oct 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/evict/evict_lru.c
Expand Up @@ -1899,14 +1899,15 @@ __evict_walk_file(WT_SESSION_IMPL *session,

/*
* If application threads are blocked on eviction of clean
* pages, and the only thing preventing a clean page from being
* evicted is that it contains historical data, mark it dirty
* pages, and the only thing preventing a clean leaf page from
* being evicted is it contains historical data, mark it dirty
* so we can do lookaside eviction. We also mark the tree
* dirty to avoid an assertion that we don't discard dirty
* pages from a clean tree.
*/
if (F_ISSET(cache, WT_CACHE_EVICT_CLEAN_HARD) &&
!F_ISSET(conn, WT_CONN_EVICTION_NO_LOOKASIDE) &&
!WT_PAGE_IS_INTERNAL(page) &&
!modified && page->modify != NULL &&
!__wt_txn_visible_all(session, page->modify->rec_max_txn,
WT_TIMESTAMP_NULL(&page->modify->rec_max_timestamp))) {
Expand Down