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-4070 Avoid flushing individual files when a stable_timestamp is set. #4089

Merged
merged 1 commit into from May 3, 2018
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
9 changes: 9 additions & 0 deletions src/txn/txn_ckpt.c
Expand Up @@ -1851,6 +1851,15 @@ __wt_checkpoint_close(WT_SESSION_IMPL *session, bool final)
__wt_cache_op(session, WT_SYNC_DISCARD) : EBUSY);
}

/*
* Don't flush data from trees when there is a stable timestamp set:
* that can lead to files that are inconsistent on disk after a crash.
*/
if (btree->modified && !bulk &&
S2C(session)->txn_global.has_stable_timestamp &&
!__wt_btree_immediately_durable(session))
return (EBUSY);

/*
* Turn on metadata tracking if:
* - The session is not already doing metadata tracking.
Expand Down