diff --git a/patroni/postgresql.py b/patroni/postgresql.py index a760e879..37c20764 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -707,7 +707,6 @@ $$""".format(name, options), name, password, password) # tries twice, then returns failure (as 1) # uses "stream" as the xlog-method to avoid sync issues master_connection = leader.conn_url - bbfailures = 0 maxfailures = 2 ret = 1 for bbfailures in range(0, maxfailures):