Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
136785: sql: fix a race in TestShowTenantFingerprintsProtectsTimestamp r=yuzefovich a=yuzefovich I think there is a possible race in `TestShowTenantFingerprintsProtectsTimestamp` where we have an atomic to make sure that we close the channel only once. If we have concurrent BatchRequests checking the `if` condition at the same time, both will try to close the channel leading to a panic. Switch to using compare-and-swap instead of load plus store. Fixes: #136711. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information