diff options
author | Loic Dachary <loic@dachary.org> | 2013-09-15 16:38:58 +0200 |
---|---|---|
committer | Loic Dachary <loic@dachary.org> | 2013-09-23 23:46:43 +0200 |
commit | ccf2200841d84c9b61297ccc482cad95fec1ff8c (patch) | |
tree | c00726fef553c793f986d1a5f6f70fb200ce9768 | |
parent | 8f0bb2f02fa7c6acd7ee624f13ce6f172e3d68b0 (diff) | |
download | ceph-ccf2200841d84c9b61297ccc482cad95fec1ff8c.tar.gz |
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>
-rw-r--r-- | src/mon/MonCommands.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 365fd28b64e..482ea91ea02 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -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") |