diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/btree/row_modify.c')
-rw-r--r-- | src/third_party/wiredtiger/src/btree/row_modify.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/third_party/wiredtiger/src/btree/row_modify.c b/src/third_party/wiredtiger/src/btree/row_modify.c index 0b543ad7441..fd74b7649fa 100644 --- a/src/third_party/wiredtiger/src/btree/row_modify.c +++ b/src/third_party/wiredtiger/src/btree/row_modify.c @@ -344,8 +344,7 @@ __wt_update_obsolete_check( WT_TXN_GLOBAL *txn_global; WT_UPDATE *first, *next; size_t size; - uint64_t oldest, stable; - u_int count, upd_seen, upd_unstable; + u_int count; next = NULL; page = cbt->ref->page; @@ -355,9 +354,6 @@ __wt_update_obsolete_check( if (WT_PAGE_TRYLOCK(session, page) != 0) return; - upd_seen = upd_unstable = 0; - oldest = txn_global->has_oldest_timestamp ? txn_global->oldest_timestamp : WT_TS_NONE; - stable = txn_global->has_stable_timestamp ? txn_global->stable_timestamp : WT_TS_NONE; /* * This function identifies obsolete updates, and truncates them from the rest of the chain; * because this routine is called from inside a serialization function, the caller has @@ -372,19 +368,11 @@ __wt_update_obsolete_check( if (upd->txnid == WT_TXN_ABORTED) continue; - ++upd_seen; if (__wt_txn_upd_visible_all(session, upd)) { if (first == NULL && WT_UPDATE_DATA_VALUE(upd)) first = upd; - } else { + } else first = NULL; - /* - * While we're here, also check for the update being kept only for timestamp history to - * gauge updates being kept due to history. - */ - if (upd->start_ts != WT_TS_NONE && upd->start_ts >= oldest && upd->start_ts < stable) - ++upd_unstable; - } /* Cannot truncate the updates if we need to remove the updates from the history store. */ if (F_ISSET(upd, WT_UPDATE_TO_DELETE_FROM_HS)) |