]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: don't call all EINVALs "unrecognized command"
authorDan Mick <dan.mick@inktank.com>
Thu, 1 Aug 2013 01:10:04 +0000 (18:10 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 1 Aug 2013 01:11:47 +0000 (18:11 -0700)
Some of them are valid EINVALs (like mds setmap with the wrong epochnum)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/mon/MDSMonitor.cc

index f0fb4ae83324a5c6fc7057d8e419b916c60e591c..d89cc4129125a8a6c4525acfcc5aac911e9c6615 100644 (file)
@@ -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);