From: Joao Eduardo Luis Date: Fri, 8 May 2015 15:29:23 +0000 (+0100) Subject: mon: MonCommand: don't match help string in is_compat() X-Git-Tag: v9.0.3~21^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4c5d5bab1f4675dfa36f4446e8ef0ece8737eab7;p=ceph.git mon: MonCommand: don't match help string in is_compat() Otherwise it's virtually impossible to change a command's help string without triggering a mismatch with the leader's command set. Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index d03f45f1fa39..1dbe8c858ded 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -973,7 +973,7 @@ struct MonCommand { ::decode(availability, bl); } bool is_compat(const MonCommand* o) const { - return cmdstring == o->cmdstring && helpstring == o->helpstring && + return cmdstring == o->cmdstring && module == o->module && req_perms == o->req_perms && availability == o->availability; }