]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: catch bad_cmd_exception and reply EINVAL
authorSage Weil <sage@redhat.com>
Thu, 2 Aug 2018 19:34:44 +0000 (14:34 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 2 Oct 2018 18:34:46 +0000 (20:34 +0200)
commita0f25a93d0eb4de1877e84029ac37ce015708ba9
tree2f9e16e006a7f06c83667adc303f09cca7cf393d
parentdf691bbf3fabce22d4058966d8ef04e601c0d383
mon: catch bad_cmd_exception and reply EINVAL

If we get bad input we should always reply EINVAL.  Note that bad_cmd_get
will be reserved for invalid input, not missing/optional input, like
passing a float when an int is expected.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit b684f02c72f24c7181a459c9034ef63609060124)

Conflicts:
src/mon/ConfigMonitor.cc (no such file in Luminous)
src/mon/AuthMonitor.cc
src/mon/LogMonitor.cc
src/mon/MDSMonitor.cc
src/mon/MgrMonitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc