]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: disable sqlite3/python autocommit 57199/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 17 Apr 2024 19:52:36 +0000 (15:52 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 1 May 2024 13:03:53 +0000 (09:03 -0400)
commitffd3a46c0036703d981c0dc4f314aa7e566001b6
treea47427630ae83ace3fc4bf429503af678c77aea1
parenta66ba63dcfff948f4398735f777e314aa81cb3c6
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