diff options
author | Dan Mick <dan.mick@inktank.com> | 2013-07-31 18:10:04 -0700 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2013-07-31 18:11:47 -0700 |
commit | c70e59ed74834a51c06d8c2d371fd0ed654688ce (patch) | |
tree | 203914e46d8f79bd86a795819276bacbfadeb886 | |
parent | c9e8ff2bf19b64b6af56d1e93694db21a3d52a8c (diff) | |
download | ceph-c70e59ed74834a51c06d8c2d371fd0ed654688ce.tar.gz |
mon/MDSMonitor: don't call all EINVALs "unrecognized command"
Some of them are valid EINVALs (like mds setmap with the wrong epochnum)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
-rw-r--r-- | src/mon/MDSMonitor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index f0fb4ae8332..d89cc412912 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -960,9 +960,9 @@ bool MDSMonitor::prepare_command(MMonCommand *m) wait_for_finished_proposal(new Monitor::C_Command(mon, m, 0, rs, get_last_committed())); return true; } - } - if (r == -EINVAL) + } else { ss << "unrecognized command"; + } out: string rs; getline(ss, rs); |