summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/txn/txn_ckpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/txn/txn_ckpt.c')
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_ckpt.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/third_party/wiredtiger/src/txn/txn_ckpt.c b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
index 4d09899ddf5..eb3ab25b823 100644
--- a/src/third_party/wiredtiger/src/txn/txn_ckpt.c
+++ b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
@@ -605,8 +605,8 @@ __checkpoint_prepare(WT_SESSION_IMPL *session, bool *trackingp, const char *cfg[
* We rely on having the global transaction data locked so the oldest timestamp can't move past
* the stable timestamp.
*/
- WT_ASSERT(session, !F_ISSET(txn, WT_TXN_HAS_TS_COMMIT | WT_TXN_HAS_TS_READ |
- WT_TXN_SHARED_TS_DURABLE | WT_TXN_SHARED_TS_READ));
+ WT_ASSERT(session,
+ !F_ISSET(txn, WT_TXN_HAS_TS_COMMIT | WT_TXN_SHARED_TS_DURABLE | WT_TXN_SHARED_TS_READ));
if (use_timestamp) {
/*
@@ -773,8 +773,9 @@ __txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
logging = FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED);
- /* Reset the maximum page size seen by eviction. */
- conn->cache->evict_max_page_size = 0;
+ /* Reset the statistics tracked per checkpoint. */
+ cache->evict_max_page_size = 0;
+ conn->rec_maximum_seconds = 0;
/* Initialize the verbose tracking timer */
__wt_epoch(session, &conn->ckpt_timer_start);
@@ -1702,20 +1703,20 @@ __checkpoint_tree_helper(WT_SESSION_IMPL *session, const char *cfg[])
txn = session->txn;
/* Are we using a read timestamp for this checkpoint transaction? */
- with_timestamp = F_ISSET(txn, WT_TXN_HAS_TS_READ);
+ with_timestamp = F_ISSET(txn, WT_TXN_SHARED_TS_READ);
/*
* For tables with immediate durability (indicated by having logging enabled), ignore any read
* timestamp configured for the checkpoint.
*/
if (__wt_btree_immediately_durable(session))
- F_CLR(txn, WT_TXN_HAS_TS_READ);
+ F_CLR(txn, WT_TXN_SHARED_TS_READ);
ret = __checkpoint_tree(session, true, cfg);
/* Restore the use of the timestamp for other tables. */
if (with_timestamp)
- F_SET(txn, WT_TXN_HAS_TS_READ);
+ F_SET(txn, WT_TXN_SHARED_TS_READ);
/*
* Whatever happened, we aren't visiting this tree again in this checkpoint. Don't keep updates