Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clientv3: fix race on watch initial revision
The initial revision was being updated in the substream goroutine defer; this was racing with the resume path fetching the initial revision when the substream closes during resume. Instead, update the initial revision whenever the substream processes a new watch response. Since the substream cannot receive a watch response while it is resuming, the write to the initial revision is ordered to always happen after the resume read. Fixes #6586
- Loading branch information