Remove delay in flushing/unflushing

This commit is contained in:
Joshua Boniface 2018-06-13 11:45:31 -04:00
parent 0b9b803493
commit 24678c12ca
1 changed files with 0 additions and 6 deletions

View File

@ -157,9 +157,6 @@ class NodeInstance():
transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), current_hypervisor.encode('ascii')) transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), current_hypervisor.encode('ascii'))
transaction.commit() transaction.commit()
# Wait 2s between migrations
time.sleep(2)
self.zk.set('/nodes/{}/domainstate'.format(self.name), 'flushed'.encode('ascii')) self.zk.set('/nodes/{}/domainstate'.format(self.name), 'flushed'.encode('ascii'))
self.inflush = False self.inflush = False
@ -179,9 +176,6 @@ class NodeInstance():
transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), ''.encode('ascii')) transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), ''.encode('ascii'))
transaction.commit() transaction.commit()
# Wait 2s between migrations
time.sleep(2)
self.inflush = False self.inflush = False
def update_zookeeper(self): def update_zookeeper(self):