Commit 2e9913f
committed
catalog/lease: fix race condition with testing knob
Previously, the testing knob TestingDisableRangeFeedCheckpoint was read
without any mutex, which could lead to a race condition in certain tests
as detected by the race detector. To address this, this patch moves the
field into the lease manager as an atomic, since testing knobs are
copied, so they cannot store mutexes or atomics.
Fixes: #156182
Release note: None1 parent 1e00b30 commit 2e9913f
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1567 | 1567 | | |
1568 | 1568 | | |
1569 | 1569 | | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1570 | 1575 | | |
1571 | 1576 | | |
1572 | 1577 | | |
| |||
2506 | 2511 | | |
2507 | 2512 | | |
2508 | 2513 | | |
2509 | | - | |
| 2514 | + | |
2510 | 2515 | | |
2511 | 2516 | | |
2512 | 2517 | | |
| |||
2572 | 2577 | | |
2573 | 2578 | | |
2574 | 2579 | | |
2575 | | - | |
| 2580 | + | |
2576 | 2581 | | |
2577 | 2582 | | |
2578 | 2583 | | |
| |||
3150 | 3155 | | |
3151 | 3156 | | |
3152 | 3157 | | |
3153 | | - | |
| 3158 | + | |
3154 | 3159 | | |
3155 | 3160 | | |
3156 | 3161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
0 commit comments