]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: validate mon dump epoch as a positive integer
authorLoic Dachary <loic@dachary.org>
Sun, 15 Sep 2013 14:38:58 +0000 (16:38 +0200)
committerLoic Dachary <loic@dachary.org>
Mon, 23 Sep 2013 21:46:43 +0000 (23:46 +0200)
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>
src/mon/MonCommands.h

index 365fd28b64eec50c9c36731d4810cc0c97c997f7..482ea91ea022dac29a59002574aefb1eb9d2b90e 100644 (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")