Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
97305: sqlstats: fix data race on get percentile values r=maryliag a=maryliag The function `GetPercentileValues` was using a read lock, since it was only reading the values from `latencySummary`, but the `Stream.flush` used by the `latencySummary` modifies the value, so a read and write lock is necessary. Issue was reproduced and then tested using: `./dev test pkg/sql -f=TestQueryCache --race --stress -v --stream-output -- cpus=1` Fixes #97273 Release note: None Co-authored-by: maryliag <[email protected]>
- Loading branch information