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

Method get_num_active

qa/tasks/ceph_manager.py:2763–2768  ·  view source on GitHub ↗

Find the number of active pgs.

(self)

Source from the content-addressed store, hash-verified

2761 return kps > 0 or bps > 0 or ops > 0
2762
2763 def get_num_active(self):
2764 """
2765 Find the number of active pgs.
2766 """
2767 pgs = self.get_pg_stats()
2768 return self._get_num_active(pgs)
2769
2770 def _get_num_active(self, pgs):
2771 num = 0

Callers 2

wait_for_activeMethod · 0.95
is_activeMethod · 0.95

Calls 2

get_pg_statsMethod · 0.95
_get_num_activeMethod · 0.95

Tested by

no test coverage detected