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

Method close_db

src/pybind/mgr/mgr_module.py:1339–1343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1337 self.load_schema(db)
1338
1339 def close_db(self) -> None:
1340 with self._db_lock:
1341 if self._db is not None:
1342 self._db.close()
1343 self._db = None
1344
1345 def open_db(self) -> Optional[sqlite3.Connection]:
1346 if not self.pool_exists(self.MGR_POOL_NAME):

Callers 1

checkFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected