mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Do not try to query xlog_location when async_executor is busy
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ class Ha(object):
|
||||
|
||||
def update_lock(self):
|
||||
ret = self.dcs.update_leader()
|
||||
if ret:
|
||||
if ret and not self._async_executor.busy:
|
||||
try:
|
||||
self.dcs.write_leader_optime(self.state_handler.last_operation())
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user