]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: show zero weight items in crush map decode/dump
authorSage Weil <sage@newdream.net>
Wed, 7 Oct 2009 18:54:56 +0000 (11:54 -0700)
committerSage Weil <sage@newdream.net>
Wed, 7 Oct 2009 18:55:54 +0000 (11:55 -0700)
src/crushtool.cc

index ceb20afba14a7fbe157582af4e7f5f94d94fc30a..dd1cf9cdf569eaa5114f5298bc667ee5e70137fd 100644 (file)
@@ -534,10 +534,6 @@ int decompile_crush(CrushWrapper &crush, ostream &out)
     for (int j=0; j<n; j++) {
       int item = crush.get_bucket_item(i, j);
       int w = crush.get_bucket_item_weight(i, j);
-      if (!w) {
-       dopos = true;
-       continue;
-      }
       out << "\titem ";
       print_item_name(out, item, crush);
       out << " weight ";