From 24678c12ca4769f45dead027d185c3a2164c12f9 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 13 Jun 2018 11:45:31 -0400 Subject: [PATCH] Remove delay in flushing/unflushing --- NodeInstance.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 0a3f07bb..d389f6e1 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -157,9 +157,6 @@ class NodeInstance(): transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), current_hypervisor.encode('ascii')) transaction.commit() - # Wait 2s between migrations - time.sleep(2) - self.zk.set('/nodes/{}/domainstate'.format(self.name), 'flushed'.encode('ascii')) self.inflush = False @@ -179,9 +176,6 @@ class NodeInstance(): transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), ''.encode('ascii')) transaction.commit() - # Wait 2s between migrations - time.sleep(2) - self.inflush = False def update_zookeeper(self):