minor patch

This commit is contained in:
Miroslav Stampar 2011-11-22 11:04:43 +00:00
parent 9697e80013
commit ac041399f0
2 changed files with 16 additions and 14 deletions

View File

@ -417,4 +417,4 @@ DEFAULT_GET_POST_DELIMITER = '&'
DEFAULT_COOKIE_DELIMITER = ';'
# Skip unforced HashDB flush requests below the threshold number of cached items
HASHDB_FLUSH_THRESHOLD = 10
HASHDB_FLUSH_THRESHOLD = 32

View File

@ -90,6 +90,7 @@ class HashDB(object):
self._write_cache.clear()
self._cache_lock.release()
try:
self.beginTransaction()
for hash_, value in items:
while True:
@ -103,6 +104,7 @@ class HashDB(object):
raise
else:
break
finally:
self.endTransaction()
def beginTransaction(self):