51f512a3e6
When `volumewatcher.Watcher` starts on the leader, it starts a watch on every volume and triggers a reap of unused claims on any change to that volume. But if a reaping is in-flight during leadership transitions, it will fail and the event that triggered the reap will be dropped. Perform one reap of unused claims at the start of the watcher so that leadership transitions don't drop this event. |
||
---|---|---|
.. | ||
interfaces.go | ||
interfaces_test.go | ||
volume_watcher.go | ||
volume_watcher_test.go | ||
volumes_watcher.go | ||
volumes_watcher_test.go |