Commit Graph

6 Commits

Author SHA1 Message Date
Hartley McGuire
47f7638d60 PT-2015 Fix pt-config-diff not sorting flags
Previously, flags would be compared in the exact order they are output
by MySQL, which can result in false negatives if the input ordering does
not match.

Example from the ticket:

```
[root@avvr-dbm51 ~]# pt-config-diff /etc/my.cnf h=localhost,P=3047
1 config difference
Variable                  /etc/my.cnf  avvr-dbm51
========================= ============ ============
myisam_recover_options    FORCE,BACKUP BACKUP,FORCE
```

This commit fixes the issue by sorting the flags before comparison to
ensure that any ordering differences will not report a diff.

Co-authored-by: Jonathan Gnagy <jonathan@therubyist.org>
2025-08-27 16:12:27 +00:00
Brian Fraser
0681986dee Merged fix-1022622-ptcd-case-sensitivity 2012-12-11 11:45:29 -03:00
Brian Fraser fraserb@gmail.com
4c5678876d Fix for bug 889739: pt-config-diff doesn't diff quoted strings properly 2012-07-30 11:50:42 -03:00
Brian Fraser
ac015477af Bug 1022622: pt-config-diff is case-sensitive 2012-07-27 20:12:45 -03:00
Daniel Nichter
b805f7c92d Remove $Revision$ and finish re-branding modules. Rename MaatkitTest.pm to PerconaTest.pm. Put copyrights on one line. 2011-07-12 15:47:07 -06:00
Daniel Nichter
6c501128e6 Add lib/, t/lib/, and sandbox/. All modules are updated and passing on MySQL 5.1. 2011-06-24 11:22:06 -06:00