You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Fix thread arg errors (app instead of sequence)
This commit is contained in:
committed by
drrtuy
parent
927eb4b2bd
commit
e34f7d2530
@ -36,7 +36,7 @@ def worker(app):
|
||||
repeatedly.
|
||||
"""
|
||||
while True:
|
||||
t = threading.Timer(5.0, clean_txn_by_timeout, app)
|
||||
t = threading.Timer(5.0, clean_txn_by_timeout, args=(app,))
|
||||
t.start()
|
||||
t.join()
|
||||
|
||||
@ -76,7 +76,7 @@ class TxnBackgroundThread(plugins.SimplePlugin):
|
||||
"""Plugin entrypoint"""
|
||||
|
||||
self.t = threading.Thread(
|
||||
target=worker, name='TxnBackgroundThread', args=(self.app)
|
||||
target=worker, name='TxnBackgroundThread', args=(self.app,)
|
||||
)
|
||||
self.t.daemon = True
|
||||
self.t.start()
|
||||
|
Reference in New Issue
Block a user