mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
minor patch
This commit is contained in:
parent
9697e80013
commit
ac041399f0
|
@ -417,4 +417,4 @@ DEFAULT_GET_POST_DELIMITER = '&'
|
||||||
DEFAULT_COOKIE_DELIMITER = ';'
|
DEFAULT_COOKIE_DELIMITER = ';'
|
||||||
|
|
||||||
# Skip unforced HashDB flush requests below the threshold number of cached items
|
# Skip unforced HashDB flush requests below the threshold number of cached items
|
||||||
HASHDB_FLUSH_THRESHOLD = 10
|
HASHDB_FLUSH_THRESHOLD = 32
|
||||||
|
|
|
@ -90,6 +90,7 @@ class HashDB(object):
|
||||||
self._write_cache.clear()
|
self._write_cache.clear()
|
||||||
self._cache_lock.release()
|
self._cache_lock.release()
|
||||||
|
|
||||||
|
try:
|
||||||
self.beginTransaction()
|
self.beginTransaction()
|
||||||
for hash_, value in items:
|
for hash_, value in items:
|
||||||
while True:
|
while True:
|
||||||
|
@ -103,6 +104,7 @@ class HashDB(object):
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
finally:
|
||||||
self.endTransaction()
|
self.endTransaction()
|
||||||
|
|
||||||
def beginTransaction(self):
|
def beginTransaction(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user