MCPcopy Create free account
hub / github.com/ceph/ceph / configure_db

Method configure_db

src/pybind/mgr/mgr_module.py:1330–1337  ·  view source on GitHub ↗
(self, db: sqlite3.Connection)

Source from the content-addressed store, hash-verified

1328 return self._ceph_exit(120, hard=True)
1329
1330 def configure_db(self, db: sqlite3.Connection) -> None:
1331 db.execute('PRAGMA FOREIGN_KEYS = 1')
1332 db.execute('PRAGMA JOURNAL_MODE = PERSIST')
1333 db.execute('PRAGMA PAGE_SIZE = 65536')
1334 db.execute('PRAGMA CACHE_SIZE = 64')
1335 db.execute('PRAGMA TEMP_STORE = memory')
1336 db.row_factory = sqlite3.Row
1337 self.load_schema(db)
1338
1339 def close_db(self) -> None:
1340 with self._db_lock:

Callers 1

open_dbMethod · 0.95

Calls 2

load_schemaMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected