Ensure we empty of flush_thread
This commit is contained in:
parent
e8d8fb161b
commit
9a39d739e8
|
@ -156,6 +156,7 @@ class NodeInstance(object):
|
|||
while self.flush_stopper:
|
||||
time.sleep(1)
|
||||
self.flush_stopper = False
|
||||
self.flush_thread = None
|
||||
# Do flushing in a thread so it doesn't block the migrates out
|
||||
if self.domain_state == 'flush':
|
||||
self.flush_thread = threading.Thread(target=self.flush, args=(), kwargs={})
|
||||
|
|
Loading…
Reference in New Issue