Commit Graph

251 Commits

Author SHA1 Message Date
Daniel Nichter
4dacb9805c Update --set-vars and ->prop() in all tools. 2013-03-01 18:53:28 -07:00
Daniel Nichter
aed0140d64 Remove --daemonize from pt-config-diff. 2013-02-26 16:57:02 -07:00
Daniel Nichter
ae5280c232 Update Cxn in all tools and set parent accordingly. 2013-02-26 16:45:45 -07:00
Daniel Nichter
b286da993f Check for ../../.bzr for when a tool is ran as a module in a test. 2013-02-22 08:00:55 -07:00
Daniel Nichter
550bb3887a Add force => ->got('version-check') to tools. 2013-02-21 16:37:25 -07:00
Daniel Nichter
58dc45cf69 Update VersionCheck in all tools. 2013-02-21 16:12:09 -07:00
Daniel Nichter
8ecde260a7 Don't try https and http: use https if possible, else http. Lower timeout from 5 to 3 seconds. Start updating/fixing pt-archiver/version_check.t. 2013-02-14 09:41:52 -07:00
Daniel Nichter
877d1a3b26 Change version_check_file() to prefer global system dirs first. 2013-02-14 08:49:57 -07:00
Daniel Nichter
4545926556 Fix get_perl_module_version(). Add 'hours until next check' to debug output. 2013-02-14 08:28:18 -07:00
Daniel Nichter
6c79f4a5c1 Update, clean up VersionCheck. Update it all tools. 2013-02-13 20:57:39 -07:00
Daniel Nichter
07810ca867 Change --version-check to --[no]version-check, update POD text and how version_check() is called. 2013-02-13 16:06:31 -07:00
Daniel Nichter
b6bd78d205 Rename Pingback.pm to VersionCheck.pm. 2013-02-11 19:02:59 -07:00
Brian Fraser
c02844a9d6 Merged merge-VersionCheck-Pingback 2013-02-11 22:21:53 -03:00
Brian Fraser
6bf3a35a1a Merged use-lmo.
This commit renames our fork of Mo to Lmo, since the two have diverged
a huge deal. The merged branch streamlined Lmo a great deal as well,
for maintainability.
2013-02-11 21:19:56 -03:00
Brian Fraser
10634cd27c Update files to use the merged Pingback+VersionCheck 2013-01-31 22:24:47 -03:00
Brian Fraser
25e62aa305 Add Mo to pt-config-diff, pt-query-advisor, and pt-upgrade 2013-01-31 20:10:40 -03:00
Brian Fraser
5b9932ca28 Updated some files that still used the old ReportFormatter 2013-01-31 19:51:38 -03:00
Daniel Nichter
8a4c681050 Merge copyright-percona-ireland-ltd. 2013-01-02 17:54:18 -07:00
Daniel Nichter
feab2f0925 s/Percona Inc/Percona Ireland Ltd/g 2013-01-02 17:19:16 -07:00
Brian Fraser
76301871ec Build percona-toolkit-2.1.8 2012-12-21 14:38:09 -03:00
Brian Fraser
2d78170c7a Merged fix-1078887-DSNParser-set-vars-sql_mode-clobber 2012-12-11 11:48:44 -03:00
Brian Fraser
0681986dee Merged fix-1022622-ptcd-case-sensitivity 2012-12-11 11:45:29 -03:00
Brian Fraser fraserb@gmail.com
3d263dd6ed Merged fix-1007938-mysqlconfig-eol-comments, resolved conflicts 2012-12-05 14:46:32 -03:00
Brian Fraser
a7a0da3bc9 Refactor _parse_varvals.
Now it takes two arguments: A regexp and a string to match against.
_parse_varvals itself was split in three:  _preprocess_varvals,
_parse_varvals, and _process_val.

This also modifies the three places that call _parse_varvals; For
two, no real changes were needed, but parse_mysqld() required a fix
to deal with the two final lines of mysqld --help --verbose:

   To see what values a running MySQL server is using, type
   'mysqladmin variables' instead of 'mysqld --verbose --help'.
2012-12-04 05:02:56 -03:00
Brian Fraser
40e5d050a6 Update modules for all tools using DSNParser 2012-12-03 00:48:11 -03:00
Brian Fraser
76a010abee Fix for 917770: Use of uninitialized value in substitution (s///) at pt-config-diff line 1996
This turned out to be two bugs mangled into one.

First, _parse_varvals can deal with (var, undef), but not with (undef).
This is a problem because two of the trhee spots that call
_parse_varvals can return undef because of this:

      map  { $_ =~ m/^([^=]+)(?:=(.*))?$/ }
      grep { $_ !~ m/^\s*#/ }  # no # comment lines
      split("\n", $mysqld_section)

The problem is twofold. First, we are not skipping empty or
whitespace-only lines. That means that the map will fail,
and pass an undef to _parse_varvals. So this ended up in
a triple fix: Make _parse_varvals deal with a sole undef,
skip empty/whitespace lines, and change that map to

	map  { $_ =~ m/^([^=]+)(?:=(.*))?$/ ? ($1, $2) : () }

so even if the regex fails in the future, no sole undef
will be passed down the chain.
2012-11-30 16:17:45 -03:00
Daniel Nichter
9d1004ddbb Check and update tool versions, release notes, user docs, etc. before build. 2012-11-19 18:47:13 +00:00
Daniel Nichter
92e1242d00 Update Percona::Toolkit::VERSION and Changelog. 2012-11-19 18:41:34 +00:00
Brian Fraser
26e1e3bc19 Build percona-toolkit-2.1.6 2012-11-13 12:22:01 -03:00
Brian Fraser
c811d60ae1 Pushed the lib/Percona/Toolkit.pm version, and added extra tests to t/lib/Percona/Toolkit.t 2012-11-13 12:10:25 -03:00
Brian Fraser
cafb2b3fb5 Merged fix-1062563-1063912-ptc-pxc-bugs 2012-11-09 18:41:32 -03:00
Brian Fraser
d827c7228d Merged OptionParser-remove-optional_value & updated modules 2012-11-09 13:31:13 -03:00
Brian Fraser
7beb0b518e Reverted a few unnecessary changes 2012-11-08 17:47:00 -03:00
Brian Fraser
42a9cf4b6e Merged fix-1062563-1063912-ptc-pxc-bugs and resolved conflicts, added the missing Percona::XtraDB::Cluster file 2012-11-08 17:38:04 -03:00
Brian Fraser
aa79c9df57 Moved the PXC-dealing parts of Cxn.pm into Percona::XtraDB::Cluster 2012-11-07 04:06:50 -03:00
Brian Fraser
d3c7a059e7 Fixes per Daniel's review 2012-11-06 11:35:49 -03:00
Brian Fraser
a32842b12a Updated modules for bin/pt-config-diff 2012-11-02 02:02:31 -03:00
Brian Fraser
78da81fea5 Fixed a typo and added some regression tests 2012-11-01 17:04:00 -03:00
Brian Fraser
7f557759a7 Updates per Daniel's review 2012-11-01 16:51:58 -03:00
Brian Fraser
64fe380986 Updated modules in all tools 2012-10-31 06:18:34 -03:00
Daniel Nichter
376572e637 Merge fix-995896-cat-in-daemon 2012-10-30 17:04:22 -06:00
Daniel Nichter
4ceecaf929 Update Daemon.pm in all tools. 2012-10-30 16:59:36 -06:00
Brian Fraser fraserb@gmail.com
6e3d3e6c96 Removed optional_value, made --version-check have default: off, updated the tools and documentation with the changes, and added the auto value to Pingback.pm 2012-10-30 12:42:42 -03:00
Daniel Nichter
0d4d008f79 Update OptionParser in all tools. 2012-10-22 12:17:08 -06:00
Daniel Nichter
4a494d1a20 Remove all_privs tests. Update Percona::Toolkit::VERSION. 2012-10-20 17:59:28 -06:00
Daniel Nichter
309bc1f270 Build percona-toolkit-2.1.5 2012-10-08 22:02:17 +01:00
Brian Fraser
5594f2e64c HTTPMicro: Inline part of IO::Socket::SSL for cases when the local version of the module isn't high enough to support ->verify_hostname(), like in centos5 2012-09-24 16:24:36 -03:00
Brian Fraser
484fcb6a2f Minor update to --version-check: Let the user know if there were no suggestions 2012-09-24 16:24:11 -03:00
Brian Fraser
aa98b589b6 Build percona-toolkit-2.1.4 2012-09-20 10:59:16 -03:00
Brian Fraser
718bbedd4b Final update-modules before the release 2012-09-20 10:58:15 -03:00