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

Checking empty() wasn't grabbing the broadcasts lock so the race detector flags it as a data race with coalesce(). Instead, just return the number of remaining watches following delete() and get rid of empty().