From 595598533aa63388db77931f682ff91c7c5dd016 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 8 Aug 2016 17:44:32 +0200 Subject: [PATCH] Add missing file. --- patroni/dcs/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patroni/dcs/__init__.py b/patroni/dcs/__init__.py index a37ac6c9..4c9e27f0 100644 --- a/patroni/dcs/__init__.py +++ b/patroni/dcs/__init__.py @@ -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