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:
Alexandre Beslic 2015-05-21 18:30:54 -07:00
parent 055551a0c8
commit 86b144859a
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}