mirror of
https://github.com/ceph/ceph
synced 2025-01-21 02:31:19 +00:00
mon: if we're the leader, don't validate command matching
Classic-format commands never match our leader command set! Signed-off-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
parent
2bfd34ac95
commit
fb47d54044
@ -2080,8 +2080,8 @@ void Monitor::handle_command(MMonCommand *m)
|
||||
// validate command is in our map & matches, or forward
|
||||
const MonCommand *mon_cmd = _get_moncommand(prefix, mon_commands,
|
||||
ARRAY_SIZE(mon_commands));
|
||||
if (!mon_cmd ||
|
||||
(*leader_cmd != *mon_cmd)) {
|
||||
if (!is_leader() && (!mon_cmd ||
|
||||
(*leader_cmd != *mon_cmd))) {
|
||||
dout(10) << "We don't match leader, forwarding request " << m << dendl;
|
||||
forward_request_leader(m);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user