mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
pybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()
it's incorrect. as the underlying C implementation, "osdmap_apply_incremental()", actually expects an instance of `BasePyOSDMapIncrementalType`. which is mapped to `BasePyOSDMapIncremental` in Python. and this class is wrapped using `OSDMapIncremental` in mgr_module.py. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
d139166ea7
commit
7b2dd7eba4
@ -7,7 +7,7 @@ class BasePyOSDMap(object):
|
||||
def _get_crush_version(self): ...
|
||||
def _dump(self):...
|
||||
def _new_incremental(self):...
|
||||
def _apply_incremental(self, inc:int):...
|
||||
def _apply_incremental(self, inc: 'BasePyOSDMapIncremental'):...
|
||||
def _get_crush(self):...
|
||||
def _get_pools_by_take(self, take):...
|
||||
def _calc_pg_upmaps(self, inc, max_deviation, max_iterations, pool):...
|
||||
|
Loading…
Reference in New Issue
Block a user