summaryrefslogtreecommitdiff
path: root/src/txn/txn_ckpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/txn/txn_ckpt.c')
-rw-r--r--src/txn/txn_ckpt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/txn/txn_ckpt.c b/src/txn/txn_ckpt.c
index 34eaf68ffd4..cde9a491943 100644
--- a/src/txn/txn_ckpt.c
+++ b/src/txn/txn_ckpt.c
@@ -580,6 +580,14 @@ __wt_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
WT_ERR(__wt_bt_cache_flush(session,
ckptbase, is_checkpoint ? WT_SYNC : WT_SYNC_DISCARD));
+ /*
+ * All blocks being written have been written; set the object's write
+ * generation.
+ */
+ WT_CKPT_FOREACH(ckptbase, ckpt)
+ if (F_ISSET(ckpt, WT_CKPT_ADD))
+ ckpt->write_gen = btree->write_gen;
+
fake:
/* Update the object's metadata. */
txn->isolation = TXN_ISO_READ_UNCOMMITTED;