]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: minor cleanup on tunables helpers
authorSage Weil <sage@inktank.com>
Tue, 17 Dec 2013 05:35:19 +0000 (21:35 -0800)
committerSage Weil <sage@inktank.com>
Tue, 17 Dec 2013 05:35:19 +0000 (21:35 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.h

index be2ff38be09865294e78db0c4fe8b4932a4d1a77..5edfe00e47cdd45b3624029eaae748a912c8938d 100644 (file)
@@ -100,15 +100,12 @@ public:
   }
 
   // tunables
-  void set_tunables_legacy() {
+  void set_tunables_argonaut() {
     crush->choose_local_tries = 2;
     crush->choose_local_fallback_tries = 5;
     crush->choose_total_tries = 19;
     crush->chooseleaf_descend_once = 0;
   }
-  void set_tunables_argonaut() {
-    set_tunables_legacy();
-  }
   void set_tunables_bobtail() {
     crush->choose_local_tries = 0;
     crush->choose_local_fallback_tries = 0;
@@ -116,6 +113,9 @@ public:
     crush->chooseleaf_descend_once = 1;
   }
 
+  void set_tunables_legacy() {
+    set_tunables_argonaut();
+  }
   void set_tunables_optimal() {
     set_tunables_bobtail();
   }