Do not try to query xlog_location when async_executor is busy

This commit is contained in:
Alexander Kukushkin
2016-04-13 13:32:39 +02:00
parent 01da5266a0
commit 946d8ef4f2
+1 -1
View File
@@ -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: