1
0
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:
Alexander Presnyakov
2025-04-18 07:13:21 +00:00
committed by drrtuy
parent 927eb4b2bd
commit e34f7d2530

View File

@ -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()