compose / governor

Runners to orchestrate a high-availability PostgreSQL
MIT License
511 stars 75 forks source link

non atomic has_lock() and update_lock() #41

Open cakester opened 7 years ago

cakester commented 7 years ago
                if self.has_lock():
                    self.update_lock()

this is not atomic, and update_lock would fail if too slow (412), could combine them together