From b844dfb3423a419edd199ae5ecabb3299586a220 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 12 Jul 2017 15:09:00 -0400 Subject: [PATCH] mon/MonCommands: mark 'pg set_*_ratio' deprecated Signed-off-by: Sage Weil --- src/mon/MonCommands.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 8d974660f29d0..87194e99227c8 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -125,11 +125,13 @@ // note: this should be replaced shortly! COMMAND("pg force_create_pg name=pgid,type=CephPgid", \ "force creation of pg ", "pg", "rw", "cli,rest") -COMMAND("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") -COMMAND("pg set_nearfull_ratio name=ratio,type=CephFloat,range=0.0|1.0", \ - "set ratio at which pgs are considered nearly full", \ - "pg", "rw", "cli,rest") +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)) +COMMAND_WITH_FLAG("pg set_nearfull_ratio " \ + "name=ratio,type=CephFloat,range=0.0|1.0", \ + "set ratio at which pgs are considered nearly full", \ + "pg", "rw", "cli,rest", FLAG(DEPRECATED)) COMMAND("pg map name=pgid,type=CephPgid", "show mapping of pg to osds", \ "pg", "r", "cli,rest") -- 2.39.5