save remaining syncmetadata tasks on shutdown

This commit is contained in:
j 2016-02-27 10:19:45 +05:30
commit be1c4085f2
2 changed files with 9 additions and 0 deletions

View file

@ -111,3 +111,5 @@ class Tasks(Thread):
if not state.shutdown:
#logger.debug('queue: %s (%s)', action, data)
self.q.put((priority, (action, data)))
else:
self._tasks.append((priority, (action, data)))