]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: do not use TREE in tests
authorLoic Dachary <ldachary@redhat.com>
Tue, 18 Apr 2017 07:33:06 +0000 (09:33 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 18 Apr 2017 07:38:54 +0000 (09:38 +0200)
It is bugous and unsupported.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/crush/CrushWrapper.cc

index ba6cd774f5f9e090c2b26761736cac314437e7a4..aa3ed040b7a87e8a8a461dc139b3d9048f66606a 100644 (file)
@@ -727,7 +727,7 @@ TEST(CrushWrapper, remove_item) {
 
   {
     int host;
-    c->add_bucket(0, CRUSH_BUCKET_TREE, CRUSH_HASH_RJENKINS1,
+    c->add_bucket(0, CRUSH_BUCKET_STRAW, CRUSH_HASH_RJENKINS1,
                  HOST_TYPE, 0, NULL, NULL, &host);
     c->set_item_name(host, "host0");
   }