]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonCommand: don't match help string in is_compat()
authorJoao Eduardo Luis <joao@suse.de>
Fri, 8 May 2015 15:29:23 +0000 (16:29 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 11:20:02 +0000 (12:20 +0100)
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 <joao@suse.de>
src/mon/Monitor.h

index d03f45f1fa39f31218aa4eacfadee67696d33f6a..1dbe8c858ded609edd974eab23e8aae119a0d91c 100644 (file)
@@ -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;
   }