]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands: mark 'pg force_create_pg' deprecated
authorSage Weil <sage@redhat.com>
Sat, 5 Aug 2017 19:33:37 +0000 (15:33 -0400)
committerSage Weil <sage@redhat.com>
Mon, 7 Aug 2017 19:12:10 +0000 (15:12 -0400)
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 <sage@redhat.com>
src/mon/MonCommands.h

index 62e09c510e2ca09961bf3e742a6a50c053b4fd28..c7a5401f229a49f657589643d1b3d9df7558a566 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_WITH_FLAG("pg force_create_pg name=pgid,type=CephPgid", \
+                 "force creation of pg <pgid>", "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))