Skip to content

Commit 21c9610

Browse files
wt-vendoring-bot[bot]MongoDB Bot
authored andcommitted
Import wiredtiger: 6361ae9f7afd8f2d22ea7c8267206010bcea4044 from branch mongodb-master (#25527)
GitOrigin-RevId: c00bad3
1 parent 8c8ec00 commit 21c9610

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/third_party/wiredtiger/import.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"vendor": "wiredtiger",
33
"github": "wiredtiger/wiredtiger.git",
44
"branch": "mongodb-master",
5-
"commit": "40b2e5bf014656a7b62c0796310ede60921b9914"
5+
"commit": "6361ae9f7afd8f2d22ea7c8267206010bcea4044"
66
}

src/third_party/wiredtiger/src/include/txn_inline.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,14 @@ __wt_txn_read(
13831383

13841384
/* If there's no visible update in the update chain or ondisk, check the history store file. */
13851385
if (F_ISSET(S2C(session), WT_CONN_HS_OPEN) && !F_ISSET(session->dhandle, WT_DHANDLE_HS)) {
1386-
__wt_timing_stress(session, WT_TIMING_STRESS_HS_SEARCH, NULL);
1386+
/*
1387+
* Stressing this code path may slow down the system too much. To minimize the impact, sleep
1388+
* on every random 100th iteration when this is enabled.
1389+
*/
1390+
if (FLD_ISSET(S2C(session)->timing_stress_flags, WT_TIMING_STRESS_HS_SEARCH) &&
1391+
__wt_random(&session->rnd) % 100 == 0)
1392+
__wt_timing_stress(session, WT_TIMING_STRESS_HS_SEARCH, NULL);
1393+
13871394
WT_RET(__wt_hs_find_upd(session, S2BT(session)->id, key, cbt->iface.value_format, recno,
13881395
cbt->upd_value, &cbt->upd_value->buf));
13891396
}

0 commit comments

Comments
 (0)