minor update

This commit is contained in:
Miroslav Stampar
2011-11-22 10:41:56 +00:00
parent b117c40aa5
commit 267d67b024
2 changed files with 6 additions and 0 deletions

View File

@@ -76,6 +76,9 @@ class HashDB(object):
self.flush()
def flush(self):
if not self._write_cache:
return
self._cache_lock.acquire()
items = self._write_cache.items()
self._write_cache.clear()