]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: expose osdmap pg_to_up_acting_osds
authorJohn Spray <john.spray@redhat.com>
Mon, 9 Oct 2017 16:08:38 +0000 (17:08 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 11 Sep 2018 10:21:35 +0000 (11:21 +0100)
commit5c071a61f41f20e563909c90d2c054e97a4a747d
tree8b596acd923d824b97fbab68e5c6aacf8af8c983
parenta0c6b833348b9495ffb5d5141a53d87ba84df7a6
mgr: expose osdmap pg_to_up_acting_osds

It's not efficient to have python calling this
O(pg_num) times to find the pgs for an OSD, but
I'm just shooting for something functional for now.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/PyOSDMap.cc
src/pybind/mgr/mgr_module.py