]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush: remove 'class rm' command
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 5 Aug 2017 08:21:27 +0000 (16:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 5 Aug 2017 10:52:30 +0000 (18:52 +0800)
commitb863883ca783487401fde4f4480ed1d9b093363e
tree5739aa2af4c6d9f07a7a71f454b178e8d2b76cb8
parentf1d80ff750ca86120e59b191c0cf464311910e76
crush: remove 'class rm' command

The current version is broken. E.g., it should only remove a class
which is never referenced by any device.

Since we now create new classes automatically, we shall automatically
recycle dead classes too. So this command is definitely unuseful.
(Actually it is weird that we keep 'class rm' without keeping the
 corresponding 'class create' command).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/standalone/crush/crush-classes.sh
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/mon/MonCommands.h
src/mon/OSDMonitor.cc