]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix tree bucket functions 2903/head
authorRongze Zhu <zrzhit@gmail.com>
Mon, 10 Nov 2014 16:13:42 +0000 (00:13 +0800)
committerSage Weil <sage@redhat.com>
Tue, 11 Nov 2014 19:18:35 +0000 (11:18 -0800)
commit13425488882d360fa740613dfcfd0d098c1b7616
tree41e5e2d7d5dcb2e3f653dcd924b9e19f73d30b15
parente444b221733360cdea4f4bbdbbbfbf2b6ee30ff5
crush: fix tree bucket functions

There are incorrect nodes' weight in tree bucket when construct tree
bucket. The tree bucket don't store item id in items array, so the tree
bucket will not work correctly. The patch fix above bugs and add a
simple test for tree bucket.

Signed-off-by: Rongze Zhu <zrzhit@gmail.com>
src/crush/builder.c
src/test/cli/crushtool/add-item-in-tree.t [new file with mode: 0644]
src/test/cli/crushtool/tree.template [new file with mode: 0644]
src/test/cli/crushtool/tree.template.final [new file with mode: 0644]