Retry locking tables at the same speed as the dispatcher request
This commit is contained in:
1 parent
167dc9629e
commit
1fd50fb805
1 file changed
+1
-1
@@ -197,7 +197,7 @@ class Transaction(object):
|
||||
count = 0
|
||||
while True:
|
||||
if count:
|
||||
time.sleep(0.002 * (_retry - count))
|
||||
time.sleep(0.02 * (_retry - count))
|
||||
try:
|
||||
lock_tables = extras.get('_lock_tables', [])
|
||||
for table in lock_tables:
|
||||
|
||||
Reference in new issue
Block a user