mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
mon: validate mon dump epoch as a positive integer
All other epochs are validated in the same way http://tracker.ceph.com/issues/6274 refs #6274 Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com> Signed-off-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
parent
8f0bb2f02f
commit
ccf2200841
@ -290,7 +290,7 @@ COMMAND("mds newfs " \
|
||||
* Monmap commands
|
||||
*/
|
||||
COMMAND("mon dump " \
|
||||
"name=epoch,type=CephInt,req=false", \
|
||||
"name=epoch,type=CephInt,range=0,req=false", \
|
||||
"dump formatted monmap (optionally from epoch)", \
|
||||
"mon", "r", "cli,rest")
|
||||
COMMAND("mon stat", "summarize monitor status", "mon", "r", "cli,rest")
|
||||
|
Loading…
Reference in New Issue
Block a user