]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: fix the default type 0 name if it's not specified when decompiled 6824/head
authorSangdi Xu <xu.sangdi@h3c.com>
Thu, 17 Dec 2015 09:30:12 +0000 (17:30 +0800)
committerSangdi Xu <xu.sangdi@h3c.com>
Thu, 17 Dec 2015 09:30:17 +0000 (17:30 +0800)
Change the type 0 name from "device" to "osd", just to make it consistent

Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
src/crush/CrushCompiler.cc

index b4c2e88264d307da06ca696e7997823b732dba71..ff6da860bb06740c2a96cdb55a8a67a517e1c8ae 100644 (file)
@@ -213,7 +213,7 @@ int CrushCompiler::decompile(ostream &out)
   for (int i=0; n; i++) {
     const char *name = crush.get_type_name(i);
     if (!name) {
-      if (i == 0) out << "type 0 device\n";
+      if (i == 0) out << "type 0 osd\n";
       continue;
     }
     n--;