summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-07-01 16:53:26 +1000
committerLuke Chen <luke.chen@mongodb.com>2020-07-01 17:37:58 +1000
commit8100fd85b68031907520613ac686e52588835bd3 (patch)
treef6aed217e281e8c737c40a34f384aa3b48eadc2c /src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c
parent6c7c37470bdf4b9dc5ed0215ed161945f9553f0f (diff)
downloadmongo-8100fd85b68031907520613ac686e52588835bd3.tar.gz
Import wiredtiger: 5d5d26e79db5244a5fc748346e0e578aed306be1 from branch mongodb-4.4
ref: 46eb0217d4..5d5d26e79d for: 4.4.0-rc12 WT-6349 Don't truncate history store updates for globally visible timestamped deletes WT-6462 Use read uncommitted isolation level for history store operations WT-6483 Add debugging for log file lists WT-6484 Don't retry eviction if last_eviction_timestamp is not set
Diffstat (limited to 'src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c')
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c b/src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c
index 852aaad1169..de53843e3c9 100644
--- a/src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c
+++ b/src/third_party/wiredtiger/src/txn/txn_rollback_to_stable.c
@@ -212,7 +212,7 @@ __rollback_row_ondisk_fixup_key(WT_SESSION_IMPL *session, WT_PAGE *page, WT_ROW
* the given timestamp, the key is removed from data store.
*/
ret = __wt_hs_cursor_position(session, hs_cursor, hs_btree_id, key, WT_TS_MAX, NULL);
- for (; ret == 0; ret = hs_cursor->prev(hs_cursor)) {
+ for (; ret == 0; ret = __wt_hs_cursor_prev(session, hs_cursor)) {
WT_ERR(hs_cursor->get_key(hs_cursor, &hs_btree_id, hs_key, &hs_start_ts, &hs_counter));
/* Stop before crossing over to the next btree */
@@ -231,8 +231,7 @@ __rollback_row_ondisk_fixup_key(WT_SESSION_IMPL *session, WT_PAGE *page, WT_ROW
* If the stop time pair on the tombstone in the history store is already globally visible
* we can skip it.
*/
- if (__wt_txn_visible_all(
- session, cbt->upd_value->tw.stop_txn, cbt->upd_value->tw.durable_stop_ts)) {
+ if (__wt_txn_tw_stop_visible_all(session, &cbt->upd_value->tw)) {
WT_STAT_CONN_INCR(session, cursor_prev_hs_tombstone_rts);
continue;
}
@@ -1010,7 +1009,7 @@ __rollback_to_stable_btree_hs_truncate(WT_SESSION_IMPL *session, uint32_t btree_
/* Walk the history store for the given btree. */
hs_cursor->set_key(hs_cursor, btree_id, &key, WT_TS_NONE, 0);
- ret = hs_cursor->search_near(hs_cursor, &exact);
+ ret = __wt_hs_cursor_search_near(session, hs_cursor, &exact);
/*
* The search should always end up pointing to the start of the required btree or end of the
@@ -1018,9 +1017,9 @@ __rollback_to_stable_btree_hs_truncate(WT_SESSION_IMPL *session, uint32_t btree_
*/
WT_ASSERT(session, (ret != 0 || exact != 0));
if (ret == 0 && exact < 0)
- ret = hs_cursor->next(hs_cursor);
+ ret = __wt_hs_cursor_next(session, hs_cursor);
- for (; ret == 0; ret = hs_cursor->next(hs_cursor)) {
+ for (; ret == 0; ret = __wt_hs_cursor_next(session, hs_cursor)) {
WT_ERR(hs_cursor->get_key(hs_cursor, &hs_btree_id, hs_key, &hs_start_ts, &hs_counter));
/* Stop crossing into the next btree boundary. */
@@ -1031,8 +1030,7 @@ __rollback_to_stable_btree_hs_truncate(WT_SESSION_IMPL *session, uint32_t btree_
* If the stop time pair on the tombstone in the history store is already globally visible
* we can skip it.
*/
- if (__wt_txn_visible_all(
- session, cbt->upd_value->tw.stop_txn, cbt->upd_value->tw.durable_stop_ts)) {
+ if (__wt_txn_tw_stop_visible_all(session, &cbt->upd_value->tw)) {
WT_STAT_CONN_INCR(session, cursor_prev_hs_tombstone_rts);
continue;
}