• Ilya Dryomov's avatar
    libceph: apply_upmap() · 1c2e7b45
    Ilya Dryomov authored
    Previously, pg_to_raw_osds() didn't filter for existent OSDs because
    raw_to_up_osds() would filter for "up" ("up" is predicated on "exists")
    and raw_to_up_osds() was called directly after pg_to_raw_osds().  Now,
    with apply_upmap() call in there, nonexistent OSDs in pg_to_raw_osds()
    output can affect apply_upmap().  Introduce remove_nonexistent_osds()
    to deal with that.
    Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
    1c2e7b45
osdmap.c 56.7 KB