From 96e08ef1d4ec7cf430412297b63b41ce7460ddf0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 21 Mar 2013 11:03:55 -0700 Subject: [PATCH] mon: allow removal of buckets via 'osd crush rm ...' No reason to limit this to leaves. Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 923692698ff65..42d9c0ff11060 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2468,10 +2468,6 @@ bool OSDMonitor::prepare_command(MMonCommand *m) break; } int id = newcrush.get_item_id(m->cmd[3].c_str()); - if (id < 0) { - ss << "item '" << m->cmd[3] << "' is not a leaf in the crush map"; - break; - } if (m->cmd.size() > 4) { if (!newcrush.name_exists(m->cmd[4])) { err = -ENOENT; -- 2.39.5