mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
Start readonly when holding the leader lock
This commit is contained in:
@@ -732,6 +732,7 @@ class Postgresql(object):
|
||||
|
||||
if leader and leader.name == self.name:
|
||||
self._need_rewind = False
|
||||
member = None
|
||||
if self.is_running():
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user