]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages/MOSDMap: do compat reencode of crush map, too 18454/head
authorSage Weil <sage@redhat.com>
Sat, 21 Oct 2017 03:32:33 +0000 (22:32 -0500)
committerSage Weil <sage@redhat.com>
Sat, 21 Oct 2017 03:36:57 +0000 (22:36 -0500)
commit9eaafc66278d59447b29ce6cc378d0cd3ad14ad4
tree57b6fafb1c4841009b89c8912e56dc7cd8fffee1
parente6668b5646c9a7af03f7085f4dc1b02af3b70406
messages/MOSDMap: do compat reencode of crush map, too

If we are reencoding an incremental, and it embeds a crush map, we need
to reencode that in a compatible way too.  This is especially true now
because we have the compat crush weight-sets.  Otherwise, a client may
learn the crush map through an incremental but not understand choose_args,
and not see/understand the alternate weight set.  It will send requests
to the wrong OSDs where they will just get dropped.

Fixes: http://tracker.ceph.com/issues/21882
Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MOSDMap.h