mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor optimization
This commit is contained in:
parent
501fd85fa1
commit
e33f70269b
|
@ -86,13 +86,13 @@ class HashDB(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
self._cache_lock.acquire()
|
self._cache_lock.acquire()
|
||||||
items = self._write_cache.items()
|
_ = self._write_cache
|
||||||
self._write_cache.clear()
|
self._write_cache = {}
|
||||||
self._cache_lock.release()
|
self._cache_lock.release()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.beginTransaction()
|
self.beginTransaction()
|
||||||
for hash_, value in items:
|
for hash_, value in _.items():
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user