diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-08-28 17:59:35 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-09-08 23:14:29 +0300 |
commit | 6dd74e44dc1df85f125982a8d6591bc4a76c9f5d (patch) | |
tree | cecacd6040f6ffbc93c5d65ac436ba719754357c /net/ceph | |
parent | 5fdb1389e1399d6801a8c5d10952ef4153039fb2 (diff) | |
download | linux-6dd74e44dc1df85f125982a8d6591bc4a76c9f5d.tar.bz2 |
libceph: set 'exists' flag for newly up osd
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/osdmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 4a3125836b64..7d8f581d9f1f 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c @@ -1300,7 +1300,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, ceph_decode_addr(&addr); pr_info("osd%d up\n", 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; } |