Remove delay in flushing/unflushing
This commit is contained in:
parent
0b9b803493
commit
24678c12ca
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue