def restore_balancer_state(self):
if self._balancer_state_start is not None and not self.restored:
try:
logging.info("Restoring balancer state to: %s" % str(self._balancer_state_start))
self.set_balancer(self._balancer_state_start)
self.restored = True
except Exception, e:
logging.fatal("Failed to set balancer state! Error: %s" % e)
raise DBOperationError(e)
评论列表
文章目录