summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mon/OSDMonitor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index 507eed74c42..1355938c582 100644
--- a/src/mon/OSDMonitor.cc
+++ b/src/mon/OSDMonitor.cc
@@ -2887,7 +2887,7 @@ 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 (m->cmd.size() < 6 ||
+ if (m->cmd.size() < 7 ||
m->cmd[6] != "--allow-experimental-feature") {
ss << "increasing pg_num is currently experimental, add "
<< "--allow-experimental-feature as the last argument "