]> 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)
committerSage Weil <sage@redhat.com>
Sun, 5 Aug 2018 02:54:24 +0000 (21:54 -0500)
commitb684f02c72f24c7181a459c9034ef63609060124
tree123344368dd06d62dffa267b82506f64768a1206
parentfecb9021c1ae057c2c15832dd28a97202c6b5d22
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>
src/mon/AuthMonitor.cc
src/mon/ConfigMonitor.cc
src/mon/LogMonitor.cc
src/mon/MDSMonitor.cc
src/mon/MgrMonitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc