]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
messages/MOSDMap: do compat reencode of crush map, too
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:47:39 +0000 (22:47 -0500)
commitdbddf21bd3aac284122fd5fc84abdd4c89b12b3e
treeeb81a5d74cd8f7154fca401b460582740d86556b
parent5a4850c8c66b75d02fc2597e1ca744c6b0303836
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>
(cherry picked from commit 9eaafc66278d59447b29ce6cc378d0cd3ad14ad4)
src/messages/MOSDMap.h