From ee4d718d0fd049120aa5d1c2380efba5aa312b71 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 23 Apr 2019 11:24:07 +0800 Subject: [PATCH] mon/OSDMonitor: remove crush node flags too on "crush rm" Signed-off-by: xie xingguo --- src/mon/OSDMonitor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index e913c64a00f..677015d684d 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -9635,6 +9635,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op, break; } if (err == 0) { + if (!unlink_only) + pending_inc.new_crush_node_flags[id] = 0; ss << "removed item id " << id << " name '" << name << "' from crush map"; getline(ss, rs); wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, rs, -- 2.39.5