]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: expose require_min_compat_client variable
authorJason Dillaman <dillaman@redhat.com>
Tue, 23 Jan 2018 19:27:04 +0000 (14:27 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 23 Jan 2018 19:27:52 +0000 (14:27 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/osd/OSDMap.cc
src/osd/OSDMap.h

index 0d4059d4639b8084f36089e05ebae9831696e7b0..9798467cfdce83e2a30fab74f91cd9dcd57f3937 100644 (file)
@@ -1451,6 +1451,11 @@ uint8_t OSDMap::get_min_compat_client() const
   return CEPH_RELEASE_ARGONAUT;    // v0.48argonaut-206-g6f381af
 }
 
+uint8_t OSDMap::get_require_min_compat_client() const
+{
+  return require_min_compat_client;
+}
+
 void OSDMap::_calc_up_osd_features()
 {
   bool first = true;
index bc1e581d873459d211206a0280396a2581eff367..6dde53d847aa38e030ca817b9f449368134185b8 100644 (file)
@@ -978,6 +978,11 @@ public:
    */
   uint8_t get_min_compat_client() const;
 
+  /**
+   * gets the required minimum *client* version that can connect to the cluster.
+   */
+  uint8_t get_require_min_compat_client() const;
+
   /**
    * get intersection of features supported by up osds
    */