Skip to content

Commit

Permalink
clientv3: return CompactRevision wresp when set with Canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Jul 19, 2017
1 parent 4506ba7 commit 48dbeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientv3/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func (w *watchGrpcStream) run() {
if ws := w.nextResume(); ws != nil {
wc.Send(ws.initReq.toPB())
}
case pbresp.Canceled:
case pbresp.Canceled && pbresp.CompactRevision == 0:
delete(cancelSet, pbresp.WatchId)
if ws, ok := w.substreams[pbresp.WatchId]; ok {
// signal to stream goroutine to update closingc
Expand Down

0 comments on commit 48dbeb0

Please sign in to comment.