Commit b7b770f
Yasufumi Kinoshita
Bug#37212019: behavior related to innodb_spin_wait_delay changed in 8.0.30
To keep innodb_spin_wait_delay behavior exactly same, ut::random_from_interval_fast() is better to be aligned to the previous function ut_rnd_interval() behavior, even seems a little strange. ut_rnd_interval(low, high) returned only [low, high - 1], and the current all of users' innodb_spin_wait_delay settings depend on the behavior. ut::random_from_interval_fast(low, high) returns [low, high] and the spin_wait_delay behavior can be longer than the previous 8.0.30. ut::random_from_interval_fast() is used almost only for innodb_spin_wait_delay currently. To adjust it is the minimum change and the smallest side-effect. Change-Id: I98f1f94514fa3a4bfa5484a75b4f395dc944f6cf1 parent 1ada17e commit b7b770f
File tree
2 files changed
+12
-2
lines changed- storage/innobase/include
- unittest/gunit/innodb
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
0 commit comments