uwiger / locks

A scalable, deadlock-resolving resource locker
Mozilla Public License 2.0
204 stars 26 forks source link

fix for the candidates (and the leader) agents not removing locks from t... #1

Closed rymir closed 11 years ago

rymir commented 11 years ago

Say that you have two nodes, one candidate node and one leader node. When you stop the candidate node and then
you restart it, the leader node locks_agent will reject the lock from the just restarted candidate node locks_agent because outdated (lower version). Is this the expected behaviour? I was expecting the leader node locks_agent to remove all the associated locks from its state whenever it gets a down from a stopped locks_server process.

uwiger commented 11 years ago

Looks right. Thanks a lot!