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
..
2024-09-06 13:08:45 +03:00
2023-08-02 14:50:21 +03:00
2013-02-19 13:04:18 -07:00
2024-07-25 19:03:33 +03:00
2024-10-04 19:02:07 +03:00
2013-03-13 12:21:14 -03:00
2014-07-02 17:55:31 -03:00
2025-01-14 18:04:41 +03:00
2012-03-28 18:40:23 -06:00
2024-07-27 01:59:52 +03:00
2024-07-26 13:31:22 +03:00
2024-07-25 19:03:33 +03:00
2024-07-27 01:59:52 +03:00
2024-07-27 01:59:52 +03:00
2013-08-10 19:38:34 -07:00
2012-08-24 19:57:01 -03:00
2024-07-25 19:03:33 +03:00
2016-02-14 22:26:25 -03:00
2013-02-25 13:10:03 -03:00
2011-07-12 15:47:07 -06:00
2011-12-30 09:23:41 -07:00
2024-07-27 01:59:52 +03:00
2013-02-26 12:03:12 -03:00
2018-09-26 09:25:33 -03:00
2024-07-25 19:03:33 +03:00
2024-07-27 01:59:52 +03:00
2017-07-12 13:01:57 -03:00
2024-07-25 19:03:33 +03:00
2024-11-14 22:48:06 +03:00
2011-07-12 15:47:07 -06:00
2024-07-27 01:59:52 +03:00
2024-07-27 01:59:52 +03:00
2025-08-27 16:12:27 +00:00
2016-12-16 22:38:15 -03:00
2017-03-09 14:49:58 -03:00
2024-07-27 01:59:52 +03:00
2024-07-25 19:03:33 +03:00
2024-07-27 01:59:52 +03:00
2024-07-27 01:59:52 +03:00
2013-01-18 17:44:07 -07:00
2011-07-12 15:47:07 -06:00
2023-08-02 14:50:21 +03:00
2011-12-30 09:23:41 -07:00
2011-07-12 15:47:07 -06:00
2024-07-27 01:59:52 +03:00
2013-03-11 16:13:38 -06:00
2013-08-03 12:11:56 -07:00
2024-07-27 01:59:52 +03:00
2024-07-27 01:59:52 +03:00
2021-09-27 08:23:23 -03:00
2025-01-13 09:31:51 +01:00
2012-10-20 13:32:12 -06:00
2024-07-26 13:31:22 +03:00
2013-01-14 12:49:55 -03:00
2011-10-06 12:47:35 -06:00
2024-07-27 01:59:52 +03:00
2024-07-25 19:03:33 +03:00
2024-07-27 01:59:52 +03:00
2013-02-27 19:23:08 -07:00
2017-03-09 17:14:37 -03:00
2024-09-06 16:10:36 +03:00
2011-07-12 15:47:07 -06:00
2016-07-20 15:53:59 -03:00
2011-07-12 15:47:07 -06:00
2024-07-25 19:03:33 +03:00
2012-04-03 11:03:17 -06:00
2024-07-27 01:59:52 +03:00
2024-07-27 01:59:52 +03:00
2023-03-27 14:18:26 +03:00
2024-08-25 04:36:37 +03:00
2024-07-25 19:03:33 +03:00
2024-07-26 13:31:22 +03:00
2012-08-27 10:42:39 -06:00
2024-07-25 19:03:33 +03:00
2011-07-12 15:47:07 -06:00
2024-07-25 19:03:33 +03:00
2013-02-26 12:03:12 -03:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2024-07-27 01:59:52 +03:00
2013-03-14 09:20:54 -06:00
2024-11-13 21:23:39 +03:00
2024-07-27 01:59:52 +03:00
2016-02-24 17:17:40 -03:00
2024-07-25 19:03:33 +03:00
2011-09-22 09:04:11 -06:00