]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: fix dump for hammer tunables
authorSage Weil <sage@redhat.com>
Mon, 19 Jan 2015 17:03:20 +0000 (09:03 -0800)
committerSage Weil <sage@redhat.com>
Thu, 22 Jan 2015 18:17:02 +0000 (10:17 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc

index fb255c52855242c9841baa49795cc01b0e8466e6..a18f7f5d1b57b39c46816b1a173ce0fae9f31fc3 100644 (file)
@@ -1420,7 +1420,9 @@ void CrushWrapper::dump_tunables(Formatter *f) const
   f->dump_int("allowed_bucket_algs", get_allowed_bucket_algs());
 
   // be helpful about it
-  if (has_firefly_tunables())
+  if (has_hammer_tunables())
+    f->dump_string("profile", "hammer");
+  else if (has_firefly_tunables())
     f->dump_string("profile", "firefly");
   else if (has_bobtail_tunables())
     f->dump_string("profile", "bobtail");