mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Several goroutines may call setPrevRev concurrently with different revisions, all higher than prevRev. Previously all of these goroutines could set prevRev, so prevRev may be replaced by older one. If response's revision equals to prevRev, there's no need to call setPrevRev.