Ensure we empty of flush_thread

This commit is contained in:
Joshua Boniface 2019-12-25 20:29:17 -05:00
parent e8d8fb161b
commit 9a39d739e8
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ class NodeInstance(object):
while self.flush_stopper: while self.flush_stopper:
time.sleep(1) time.sleep(1)
self.flush_stopper = False self.flush_stopper = False
self.flush_thread = None
# Do flushing in a thread so it doesn't block the migrates out # Do flushing in a thread so it doesn't block the migrates out
if self.domain_state == 'flush': if self.domain_state == 'flush':
self.flush_thread = threading.Thread(target=self.flush, args=(), kwargs={}) self.flush_thread = threading.Thread(target=self.flush, args=(), kwargs={})