summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2022-02-15 08:33:30 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-14 22:27:59 +0000
commit05bb25c46ccea947f42c603c9bc0756ba745db55 (patch)
tree27278a2674d8c1faf40fdc198928920cf6f7e452
parentc32a638ad73c00b747a5107705e2e3509b6411d0 (diff)
downloadmongo-05bb25c46ccea947f42c603c9bc0756ba745db55.tar.gz
Import wiredtiger: bb94262bdac5537fb63bf019e922893def810706 from branch mongodb-master
ref: 2aec3a4574..bb94262bda for: 5.3.0 WT-8816 Coverity analysis defect 121526: Redundant test
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_sync.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index f65fce377ad..90d65502668 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": "2aec3a457468b4ef3e2945c7d6c6291c7fe0cd5d"
+ "commit": "bb94262bdac5537fb63bf019e922893def810706"
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_sync.c b/src/third_party/wiredtiger/src/btree/bt_sync.c
index 71be50c0280..b5af4541f3b 100644
--- a/src/third_party/wiredtiger/src/btree/bt_sync.c
+++ b/src/third_party/wiredtiger/src/btree/bt_sync.c
@@ -132,7 +132,7 @@ __sync_ref_obsolete_check(WT_SESSION_IMPL *session, WT_REF *ref)
uint8_t previous_state;
char tp_string[WT_TP_STRING_SIZE];
const char *tag;
- bool busy, hazard, obsolete, ovfl_items;
+ bool busy, obsolete, ovfl_items;
/* Ignore root pages as they can never be deleted. */
if (__wt_ref_is_root(ref)) {
@@ -222,7 +222,6 @@ __sync_ref_obsolete_check(WT_SESSION_IMPL *session, WT_REF *ref)
WT_RET(__wt_hazard_set(session, ref, &busy));
if (busy)
return (0);
- hazard = true;
mod = ref->page == NULL ? NULL : ref->page->modify;
if (mod != NULL && mod->rec_result == WT_PM_REC_EMPTY) {
@@ -293,8 +292,7 @@ __sync_ref_obsolete_check(WT_SESSION_IMPL *session, WT_REF *ref)
newest_stop_ts, newest_stop_durable_ts, newest_stop_txn, tp_string));
err:
- if (hazard)
- WT_TRET(__wt_hazard_clear(session, ref));
+ WT_TRET(__wt_hazard_clear(session, ref));
return (ret);
}