]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: disable sqlite3/python autocommit
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 17 Apr 2024 19:52:36 +0000 (15:52 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 25 Feb 2025 16:17:16 +0000 (11:17 -0500)
commitad0266f3a46bce56581a1e71958be975a06d2969
treec3abbfab9e285315241bc933f2b497e836aef1e9
parent8aab45c653ced249fbcc65ba83a66034b1651283
pybind/mgr: disable sqlite3/python autocommit

SQLite3 and python's binding were both committing transactions at unintended
points. Turn it off and stop using executescript.

Fixes: https://tracker.ceph.com/issues/65494
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 6eacfe96625e272fdb9094ab8753e70ec163c04d)
src/pybind/mgr/devicehealth/module.py
src/pybind/mgr/mgr_module.py