diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-08-28 11:59:35 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-09-08 22:14:29 +0200 |
commit | 6dd74e44dc1df85f125982a8d6591bc4a76c9f5d (patch) | |
tree | cecacd6040f6ffbc93c5d65ac436ba719754357c /net | |
parent | ceph: cleanup use of ceph_msg_get (diff) | |
download | linux-6dd74e44dc1df85f125982a8d6591bc4a76c9f5d.tar.xz linux-6dd74e44dc1df85f125982a8d6591bc4a76c9f5d.zip |
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')
-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; } |