]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crush/CrushTreeDumper.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / crush / CrushTreeDumper.h
index 931037cfdae13cc28f76e9d913fdf36f34e8fed2..5c0430c2ed8697b162cd07e124f3d61f3a41a3cb 100644 (file)
@@ -167,6 +167,14 @@ namespace CrushTreeDumper {
 
     bool is_touched(int id) const { return touched.count(id) > 0; }
 
+    void set_root(const string& bucket) {
+      roots.clear();
+      if (crush->name_exists(bucket)) {
+       int i = crush->get_item_id(bucket);
+       roots.insert(i);
+      }
+    }
+
   protected:
     virtual void dump_item(const Item &qi, F *f) = 0;