From e68d2fb94929378a384e32106b75d98aba025666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Mar 2024 08:42:10 +0100 Subject: [PATCH] Remove ending commit when loading modules The commit call was added by a6624f31ff20 to release lock because Cache.resets was called inside the transaction. But Cache.resets was removed in a83631f4ba67 and Cache does not create any new transaction since. And since 2fd8c5f88265 the transaction is even committed only on module update. (grafted from 0548d73c7ce3b4e07b6b76007f2592ed2be945ff) --HG-- branch : 6.0 --- trytond/trytond/modules/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/trytond/trytond/modules/__init__.py b/trytond/trytond/modules/__init__.py index 70533f136e..7c7e59113f 100644 --- a/trytond/trytond/modules/__init__.py +++ b/trytond/trytond/modules/__init__.py @@ -435,8 +435,6 @@ def load_modules( Module = pool.get('ir.module') Module.update_list() - # Need to commit to unlock SQLite database - transaction.commit() if not Transaction().connection: with Transaction().start(database_name, 0):