summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-12-22 15:59:46 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-12-22 15:59:46 +1100
commitfbb96d94cdba9a28f5c5d737ce6c96543f3289f4 (patch)
tree150d14822977866aa4a0c9ac87d521c49f8ed69a
parent75d69409aae8df05bee4a001463fa9ce4ed927e3 (diff)
downloadmongo-fbb96d94cdba9a28f5c5d737ce6c96543f3289f4.tar.gz
Use the original page's first_dirty_txn when restoring updates to match what we do for in-memory splits.
refs #1475
-rw-r--r--src/btree/bt_split.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/btree/bt_split.c b/src/btree/bt_split.c
index f1b96ad37f5..a14e82d980d 100644
--- a/src/btree/bt_split.c
+++ b/src/btree/bt_split.c
@@ -716,11 +716,10 @@ __split_multi_inmem(
/*
* We modified the page above, which will have set the first dirty
* transaction to the last transaction current running. However, the
- * updates we installed may be older than that. Take the oldest active
- * transaction ID to make sure these updates are not skipped by a
- * checkpoint.
+ * updates we installed may be older than that. Inherit the first
+ * dirty transaction from the original page.
*/
- page->modify->first_dirty_txn = S2C(session)->txn_global.oldest_id;
+ page->modify->first_dirty_txn = orig->modify->first_dirty_txn;
err: /* Free any resources that may have been cached in the cursor. */
WT_TRET(__wt_btcur_close(&cbt));
@@ -1137,8 +1136,8 @@ __wt_split_insert(WT_SESSION_IMPL *session, WT_REF *ref, int *splitp)
/*
* We modified the page above, which will have set the first dirty
* transaction to the last transaction current running. However, the
- * updates we are moving may be older than that: inherit the original
- * page's transaction ID.
+ * updates we installed may be older than that. Inherit the first
+ * dirty transaction from the original page.
*/
right->modify->first_dirty_txn = page->modify->first_dirty_txn;