Skip to content

Commit

Permalink
mon: Monitor: handle invalid 'quorum' command argument
Browse files Browse the repository at this point in the history
Don't rely on client side validation of possible command arguments.

Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
Joao Eduardo Luis committed Mar 18, 2014
1 parent 652056e commit 074c880
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mon/Monitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2423,6 +2423,9 @@ void Monitor::handle_command(MMonCommand *m)
start_election();
rs = "started responding to quorum, initiated new election";
r = 0;
} else {
rs = "needs a valid 'quorum' command";
r = -EINVAL;
}
}

Expand Down

0 comments on commit 074c880

Please sign in to comment.