v3rpc: don't elide next progress notification on progress notification

Fixes #5878
This commit is contained in:
Anthony Romano 2016-07-20 11:37:20 -07:00 committed by Gyu-Ho Lee
parent 846883a979
commit a4e79d7ebf

View File

@ -268,7 +268,8 @@ func (sws *serverWatchStream) sendLoop() {
}
sws.mu.Lock()
if _, ok := sws.progress[wresp.WatchID]; ok {
if len(evs) > 0 && sws.progress[wresp.WatchID] {
// elide next progress update if sent a key update
sws.progress[wresp.WatchID] = false
}
sws.mu.Unlock()