]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands: mark 'pg set_*_ratio' deprecated
authorSage Weil <sage@redhat.com>
Wed, 12 Jul 2017 19:09:00 +0000 (15:09 -0400)
committerSage Weil <sage@redhat.com>
Wed, 12 Jul 2017 19:09:00 +0000 (15:09 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommands.h

index 8d974660f29d05f71f2815708ede355cd50e2814..87194e99227c831f900ddb810759ad95fc8e8102 100644 (file)
 // note: this should be replaced shortly!
 COMMAND("pg force_create_pg name=pgid,type=CephPgid", \
        "force creation of pg <pgid>", "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")