Scalingo / go-etcd-lock

Go library to run locks over etcd.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a ttl to lock dir children

faiq opened this issue · comments

commented

Because children under the directory aren't being set with a ttl, we have to delete the ectd-lock/lock directory when there are far too many child nodes in the directory. If they were created with the same ttl as when you acquire the lock this problem wouldn't occur.