]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: do not encode osdmap with MSG_ADDR2 until kraken flag is set 9825/head
authorSage Weil <sage@redhat.com>
Fri, 30 Sep 2016 22:28:42 +0000 (18:28 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Oct 2016 16:25:47 +0000 (12:25 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index a661b291f2ee9e16eaf60456a7aa97558e2367df..670b16d92fa5d968f34ffa5f119aceea080abda9 100644 (file)
@@ -1233,8 +1233,10 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t)
       features &= ~CEPH_FEATURE_SERVER_JEWEL;
     }
     if (!tmp.test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
-      dout(10) << __func__ << " encoding without feature SERVER_KRAKEN" << dendl;
-      features &= ~CEPH_FEATURE_SERVER_KRAKEN;
+      dout(10) << __func__ << " encoding without feature SERVER_KRAKEN | "
+              << "MSG_ADDR2" << dendl;
+      features &= ~(CEPH_FEATURE_SERVER_KRAKEN |
+                   CEPH_FEATURE_MSG_ADDR2);
     }
     dout(10) << __func__ << " encoding full map with " << features << dendl;