Skip to content

Commit

Permalink
Merge pull request #11754 from polyrabbit/unpermitted-watch
Browse files Browse the repository at this point in the history
etcdserver: watch stream got closed if one watch request is not permitted
  • Loading branch information
jingyih authored Apr 6, 2020
2 parents 03fec33 + 73b936b commit 22e1bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcdserver/api/v3rpc/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,10 @@ func (sws *serverWatchStream) recvLoop() error {

select {
case sws.ctrlStream <- wr:
continue
case <-sws.closec:
return nil
}
return nil
}

filters := FiltersFromRequest(creq)
Expand Down

0 comments on commit 22e1bad

Please sign in to comment.