Skip to content

Commit 6dd74e4

Browse files
ukernelidryomov
authored andcommitted
libceph: set 'exists' flag for newly up osd
Signed-off-by: Yan, Zheng <[email protected]> Reviewed-by: Sage Weil <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 5fdb138 commit 6dd74e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ceph/osdmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
13001300
ceph_decode_addr(&addr);
13011301
pr_info("osd%d up\n", osd);
13021302
BUG_ON(osd >= map->max_osd);
1303-
map->osd_state[osd] |= CEPH_OSD_UP;
1303+
map->osd_state[osd] |= CEPH_OSD_UP | CEPH_OSD_EXISTS;
13041304
map->osd_addr[osd] = addr;
13051305
}
13061306

0 commit comments

Comments
 (0)