Add missing file.

This commit is contained in:
Oleksii Kliukin
2016-08-08 17:44:32 +02:00
parent 8416fecfd8
commit 595598533a
+2 -1
View File
@@ -316,7 +316,8 @@ class AbstractDCS(object):
def attempt_to_acquire_leader(self, permanent=False):
"""Attempt to acquire leader lock
This method should create `/leader` key with value=`~self._name`
:param permanent: if set to `!True`, the leader key will never expire. Used in patronictl for the external master
:param permanent: if set to `!True`, the leader key will never expire.
Used in patronictl for the external master
:returns: `!True` if key has been created successfully.
Key must be created atomically. In case if key already exists it should not be