]> git.apps.os.sepia.ceph.com Git - ceph-ci.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@redhat.com>
Tue, 30 Apr 2024 20:58:01 +0000 (16:58 -0400)
commit1bcc9dbd59ecab4226f0e7a88cdb1509239396c3
tree0e555134ee29e3622f922e860587764a8f9b6385
parenta69e9129b131facf184232dd27ffa482b65b0e47
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