]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MMDSMap: reencode MDSMap for old (non-addr2) clients
authorSage Weil <sage@redhat.com>
Fri, 2 Sep 2016 18:30:54 +0000 (14:30 -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/MMDSMap.h

index d177369ce750b3c80be79db1d0f6e038f4e5dff3..9947482288427d5b9ed3ccb7e6df2c8bcd80c359 100644 (file)
@@ -60,7 +60,8 @@ public:
     ::encode(fsid, payload);
     ::encode(epoch, payload);
     if ((features & CEPH_FEATURE_PGID64) == 0 ||
-       (features & CEPH_FEATURE_MDSENC) == 0) {
+       (features & CEPH_FEATURE_MDSENC) == 0 ||
+       (features & CEPH_FEATURE_MSG_ADDR2) == 0) {
       // reencode for old clients.
       MDSMap m;
       m.decode(encoded);