]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
message/MMonProbe: reencode monmap for non-addr2 clients
authorSage Weil <sage@redhat.com>
Fri, 2 Sep 2016 18:36:55 +0000 (14:36 -0400)
committerSage Weil <sage@redhat.com>
Tue, 18 Oct 2016 20:40:12 +0000 (16:40 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MMonProbe.h

index 2f8a60b347c6bdecd01c85de4532acb8ae4d5277..abe53a0bc087a3ebf173b3ff06a9b777a769c8c1 100644 (file)
@@ -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);