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

Now returns errors from checkPermissionForWatch() via the CancelReason field. This allows clients to understand why the watch was canceled. Additionally, this change protects a watch from starting and that otherwise might hang indefinitely.