summaryrefslogtreecommitdiff
path: root/src/reconcile/rec_track.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-05-21 15:57:25 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-05-21 15:57:25 +1000
commit98786589218e4d3f06232633e5be6a7e619fa165 (patch)
treeccd0cbe38e409534baf71d6775ef88b9f115acf3 /src/reconcile/rec_track.c
parent58d336e6c3e4d5364a52fd71154393069a75774a (diff)
downloadmongo-98786589218e4d3f06232633e5be6a7e619fa165.tar.gz
Export a function to get the oldest transaction ID that needs to be tracked for a given tree. Managing cached overflow items was using the oldest transaction ID, but the meaning of that field changed.
This fixes a bug that was introduced by WT-1745, that requires a combination of many overflow values, eviction and checkpoints, but can lead to unexpected WT_NOTFOUND errors during reconciliation.
Diffstat (limited to 'src/reconcile/rec_track.c')
-rw-r--r--src/reconcile/rec_track.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reconcile/rec_track.c b/src/reconcile/rec_track.c
index e417dbfaa83..36e85713421 100644
--- a/src/reconcile/rec_track.c
+++ b/src/reconcile/rec_track.c
@@ -711,7 +711,7 @@ __ovfl_txnc_wrapup(WT_SESSION_IMPL *session, WT_PAGE *page)
* visibility check could give different results as the global ID moves
* forward.
*/
- oldest_txn = S2C(session)->txn_global.oldest_id;
+ oldest_txn = __wt_txn_oldest_id(session);
/*
* Discard any transaction-cache records with transaction IDs earlier