From 443203705ceead925e9fda6f70467d394dc1f3c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 20 Feb 2012 13:00:14 -0800 Subject: [PATCH] mon: disable pg_num adjustment Until #1515 is fixed/reimplemented. Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 139d5f943b922..51ed5e69eee41 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2032,6 +2032,11 @@ bool OSDMonitor::prepare_command(MMonCommand *m) paxos->wait_for_commit(new Monitor::C_Command(mon, m, 0, rs, paxos->get_version())); return true; } else if (m->cmd[4] == "pg_num") { + if (true) { + // ** DISABLE THIS FOR NOW ** + ss << "pg_num adjustment currently disabled (broken implementation)"; + // ** DISABLE THIS FOR NOW ** + } else if (n <= p->get_pg_num()) { ss << "specified pg_num " << n << " <= current " << p->get_pg_num(); } else if (!mon->pgmon()->pg_map.creating_pgs.empty()) { -- 2.39.5