From: Sage Weil Date: Tue, 17 Dec 2013 05:35:19 +0000 (-0800) Subject: crush/CrushWrapper: minor cleanup on tunables helpers X-Git-Tag: v0.75~82^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41d5186f49e2f39d3397a19008226a8cde94aa92;p=ceph.git crush/CrushWrapper: minor cleanup on tunables helpers Signed-off-by: Sage Weil --- diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index be2ff38be098..5edfe00e47cd 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -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(); }