mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 21:51:29 +00:00
minor optimization
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user