Commit 5210f975 authored by Yan, Zheng's avatar Yan, Zheng Committed by Sasha Levin

libceph: set 'exists' flag for newly up osd

[ Upstream commit 6dd74e44 ]
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
Reviewed-by: default avatarSage Weil <sage@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 87076a01
...@@ -1300,7 +1300,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, ...@@ -1300,7 +1300,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
ceph_decode_addr(&addr); ceph_decode_addr(&addr);
pr_info("osd%d up\n", osd); pr_info("osd%d up\n", osd);
BUG_ON(osd >= map->max_osd); BUG_ON(osd >= map->max_osd);
map->osd_state[osd] |= CEPH_OSD_UP; map->osd_state[osd] |= CEPH_OSD_UP | CEPH_OSD_EXISTS;
map->osd_addr[osd] = addr; map->osd_addr[osd] = addr;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment