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

Method db_ready

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

Source from the content-addressed store, hash-verified

1363
1364 @API.expose
1365 def db_ready(self) -> bool:
1366 with self._db_lock:
1367 try:
1368 return self.db is not None
1369 except MgrDBNotReady:
1370 return False
1371
1372 @property
1373 def db(self) -> sqlite3.Connection:

Callers 6

checkFunction · 0.80
self_testMethod · 0.80
_do_serveMethod · 0.80
scrape_daemonMethod · 0.80
scrape_allMethod · 0.80
scrape_deviceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected