]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: create_or_move_item()
authorSage Weil <sage@inktank.com>
Mon, 10 Sep 2012 21:25:11 +0000 (14:25 -0700)
committerSage Weil <sage@inktank.com>
Tue, 11 Sep 2012 17:48:01 +0000 (10:48 -0700)
commitadedd6b600a6b212eb707c60d55ae079779364ad
tree0dcbcf4de4316cb41475baf4117e7c7523266a04
parent588b263dd78eb12ad11ca2b9222c2a517720973d
crush: create_or_move_item()

Create an item if it doesn't exist, with the specified weight.  If it is
already in the tree, move it, but do not adjust the weight.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h