Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix race when draining rangefeed channel
The previous pattern used to drain a channel if len(ch) > 0 { <-ch } is considered a race by the race detector if close(ch) occurs at the same time. Adjust the channel-draining code to be race-safe by instead perfomring repeated nonblocking reads. Fix #30159. Release note: None
- Loading branch information