From: Sage Weil Date: Fri, 2 Sep 2016 18:36:55 +0000 (-0400) Subject: message/MMonProbe: reencode monmap for non-addr2 clients X-Git-Tag: v11.1.0~515^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0cf281900fc391ea6fc151a2798cd80f399751f;p=ceph.git message/MMonProbe: reencode monmap for non-addr2 clients Signed-off-by: Sage Weil --- diff --git a/src/messages/MMonProbe.h b/src/messages/MMonProbe.h index 2f8a60b347c..abe53a0bc08 100644 --- a/src/messages/MMonProbe.h +++ b/src/messages/MMonProbe.h @@ -90,7 +90,9 @@ public: } void encode_payload(uint64_t features) { - if (monmap_bl.length() && (features & CEPH_FEATURE_MONENC) == 0) { + if (monmap_bl.length() && + ((features & CEPH_FEATURE_MONENC) == 0 || + (features & CEPH_FEATURE_MSG_ADDR2) == 0)) { // reencode old-format monmap MonMap t; t.decode(monmap_bl);