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:
Loic Dachary 2013-09-15 16:38:58 +02:00
parent 8f0bb2f02f
commit ccf2200841

View File

@ -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")