From 52c51de0fe2a5bd4bc3412e42f691cfb54b6428f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 5 Aug 2017 15:33:37 -0400 Subject: [PATCH] mon/MonCommands: mark 'pg force_create_pg' deprecated It's deprecated. Also, this avoids a dup when we have an upgrading mon cluster and it's also in PGMonitorCommands. Signed-off-by: Sage Weil (cherry picked from commit 7c37c86bb20ebc16c1d34a3acb7ad3f183d6e0e0) --- src/mon/MonCommands.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 62e09c510e2c..c7a5401f229a 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -123,8 +123,9 @@ */ // note: this should be replaced shortly! -COMMAND("pg force_create_pg name=pgid,type=CephPgid", \ - "force creation of pg ", "pg", "rw", "cli,rest") +COMMAND_WITH_FLAG("pg force_create_pg name=pgid,type=CephPgid", \ + "force creation of pg ", "pg", "rw", "cli,rest", + FLAG(DEPRECATED)) COMMAND_WITH_FLAG("pg set_full_ratio name=ratio,type=CephFloat,range=0.0|1.0", \ "set ratio at which pgs are considered full", \ "pg", "rw", "cli,rest", FLAG(DEPRECATED)) -- 2.47.3