From: Sage Weil Date: Wed, 12 Jul 2017 19:09:00 +0000 (-0400) Subject: mon/MonCommands: mark 'pg set_*_ratio' deprecated X-Git-Tag: v12.1.1~30^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b844dfb3423a419edd199ae5ecabb3299586a220;p=ceph.git mon/MonCommands: mark 'pg set_*_ratio' deprecated Signed-off-by: Sage Weil --- diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 8d974660f29..87194e99227 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")