Skip to content

Commit 4b3d91a

Browse files
committed
Merge PR ceph#61763 into main
* refs/pull/61763/head: pybind/mgr/mgr_module: turn off all automatic transactions Reviewed-by: John Mulligan <[email protected]>
2 parents 83ed9ee + df49652 commit 4b3d91a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pybind/mgr/mgr_module.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,10 +1335,7 @@ def open_db(self) -> Optional[sqlite3.Connection]:
13351335
self.create_mgr_pool()
13361336
uri = f"file:///{self.MGR_POOL_NAME}:{self.module_name}/main.db?vfs=ceph"
13371337
self.log.debug(f"using uri {uri}")
1338-
try:
1339-
db = sqlite3.connect(uri, check_same_thread=False, uri=True, autocommit=False) # type: ignore[call-arg]
1340-
except TypeError:
1341-
db = sqlite3.connect(uri, check_same_thread=False, uri=True, isolation_level=None)
1338+
db = sqlite3.connect(uri, check_same_thread=False, uri=True, isolation_level=None) # type: ignore[call-arg]
13421339
# if libcephsqlite reconnects, update the addrv for blocklist
13431340
with db:
13441341
cur = db.execute('SELECT json_extract(ceph_status(), "$.addr");')

0 commit comments

Comments
 (0)