mirror of https://github.com/docker/docs.git
Add FIXME for the leader value staying set although all machines are gone
Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
parent
055551a0c8
commit
86b144859a
|
@ -252,6 +252,7 @@ func (l *zookeeperLock) Lock() (<-chan struct{}, error) {
|
|||
|
||||
if err == nil {
|
||||
// We hold the lock, we can set our value
|
||||
// FIXME: When the last leader leaves the election, this value will be left behind
|
||||
_, err = l.client.Set(l.key, l.value, -1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue