summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenhao Qu <chenhao.qu@mongodb.com>2021-12-29 13:08:22 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-29 02:38:56 +0000
commitae47c18fa35d09fcbac9e395ab2c1714ef6a4397 (patch)
treedf75a65f2fe466a3d07571a55c7d45f054a1eb5b
parent38d13a91b457e8f633831fe5acc81ab458799379 (diff)
downloadmongo-ae47c18fa35d09fcbac9e395ab2c1714ef6a4397.tar.gz
Import wiredtiger: 7b3e2832d653ed8a13fb8b670cccebdfe29d8837 from branch mongodb-master
ref: c5db3e1d67..7b3e2832d6 for: 5.3.0 WT-7709 Unused variable tmp in __wt_rec_upd_select()
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/src/reconcile/rec_visibility.c17
2 files changed, 8 insertions, 11 deletions
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index f5d46ea36c5..c7cf8929308 100644
--- a/src/third_party/wiredtiger/import.data
+++ b/src/third_party/wiredtiger/import.data
@@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-master",
- "commit": "c5db3e1d6752826db91c41026bd4eed3c04e32a0"
+ "commit": "7b3e2832d653ed8a13fb8b670cccebdfe29d8837"
}
diff --git a/src/third_party/wiredtiger/src/reconcile/rec_visibility.c b/src/third_party/wiredtiger/src/reconcile/rec_visibility.c
index 0ee2723373f..1e6bdeec704 100644
--- a/src/third_party/wiredtiger/src/reconcile/rec_visibility.c
+++ b/src/third_party/wiredtiger/src/reconcile/rec_visibility.c
@@ -398,8 +398,6 @@ int
__wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, WT_ROW *rip,
WT_CELL_UNPACK_KV *vpack, WT_UPDATE_SELECT *upd_select)
{
- WT_DECL_ITEM(tmp);
- WT_DECL_RET;
WT_PAGE *page;
WT_TIME_WINDOW *select_tw;
WT_UPDATE *first_txn_upd, *first_upd, *onpage_upd, *upd, *last_upd, *tombstone;
@@ -651,7 +649,7 @@ __wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, W
* freed when it is written to the disk image in the previous eviction.
*/
if (!F_ISSET(tombstone, WT_UPDATE_RESTORED_FROM_DS | WT_UPDATE_RESTORED_FROM_HS)) {
- WT_ERR(__rec_append_orig_value(session, page, tombstone, vpack));
+ WT_RET(__rec_append_orig_value(session, page, tombstone, vpack));
/*
* We may have updated the global transaction concurrently and the tombstone is now
@@ -710,7 +708,7 @@ __wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, W
upd_select->upd;
/* Check the update chain for conditions that could prevent it's eviction. */
- WT_ERR(__rec_validate_upd_chain(session, r, onpage_upd, select_tw, vpack));
+ WT_RET(__rec_validate_upd_chain(session, r, onpage_upd, select_tw, vpack));
/*
* Fixup any out of order timestamps, assert that checkpoint wasn't running when this round of
@@ -724,7 +722,7 @@ __wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, W
/* Catch this case in diagnostic builds. */
WT_STAT_CONN_DATA_INCR(session, cache_eviction_blocked_ooo_checkpoint_race_3);
WT_ASSERT(session, false);
- WT_ERR(EBUSY);
+ WT_RET(EBUSY);
}
/*
@@ -742,7 +740,7 @@ __wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, W
supd_restore = F_ISSET(r, WT_REC_EVICT) &&
(has_newer_updates || F_ISSET(S2C(session), WT_CONN_IN_MEMORY));
- WT_ERR(__rec_update_save(session, r, ins, rip, onpage_upd, supd_restore, upd_memsize));
+ WT_RET(__rec_update_save(session, r, ins, rip, onpage_upd, supd_restore, upd_memsize));
/*
* Mark the selected update (and potentially the tombstone preceding it) as being destined
@@ -788,10 +786,9 @@ __wt_rec_upd_select(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_INSERT *ins, W
*/
if (upd_select->upd != NULL && vpack != NULL && vpack->type != WT_CELL_DEL &&
!vpack->tw.prepare && (upd_saved || F_ISSET(vpack, WT_CELL_UNPACK_OVERFLOW)))
- WT_ERR(__rec_append_orig_value(session, page, upd_select->upd, vpack));
+ WT_RET(__rec_append_orig_value(session, page, upd_select->upd, vpack));
__wt_rec_time_window_clear_obsolete(session, upd_select, NULL, r);
-err:
- __wt_scr_free(session, &tmp);
- return (ret);
+
+ return (0);
}