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
Brian Fraser
5eb168b827
Fix for version-check in openSuSe
2012-09-14 09:33:52 -03:00
Brian Fraser
ee338f7ceb
v-c: Re-enable https by default, make --version-check take an optional protocol argument
2012-09-13 10:39:04 -03:00
Daniel Nichter
26ca0281b5
Use --version-check instead (so it's _not_ on by default; it must be specified).
2012-08-29 14:23:41 -06:00
Daniel Nichter
8afb9ea5ff
Fix version check instances in pt-config-diff and pt-table-sync.
2012-08-28 08:58:54 -06:00
Brian Fraser
6eee6ac6f6
Update the rest of the modules to use the updated version_check
2012-08-27 22:30:48 -03:00
Daniel Nichter
98338b6508
Simplify how Pingback handles MySQL instances. Remove Percona::Toolkit::slurp_file() because it was causing 'sub redefined' errors, probably due to PerconaTest::slurp_file(). Add more PTVCDEBUG statements.
2012-08-27 17:10:42 -06:00
Daniel Nichter
e98db38499
Fix v-c --quiet check. Test v-c in pqd since it doesn't have --quiet.
2012-08-23 10:22:43 -06:00
Daniel Nichter
639f47eb70
Add t/pt-archiver/version_check.t, v-c integration tests. Don't exit early if PTDEBUG && PTVCDEBUG (don't know what state the tool may be in).
2012-08-22 16:20:00 -06:00
Daniel Nichter
66f1bdf403
Change staging.upgrade.percona.com to $ENV{PERCONA_VERSION_CHECK_URL} || http://v.percona.com .
2012-08-22 15:10:33 -06:00
Daniel Nichter
ee583ba729
Add $ENV{PERCONA_VERSION_CHECK}=0 to PerconaTest so tests don't version-check. Implement v-c in half the tools. Make util/update-modules clean up its temp files.
2012-08-21 16:15:44 -06:00
Daniel Nichter
a95aa2b3bc
Put everything in Pingback::version_check(). Change HTTP::Micro to HTTPMicro in pingback(). Simplify time_to_check() a little and add more debug. Fix Pingback.t now that client response doesn't have TYPE and no response causes die.
2012-08-21 15:06:28 -06:00
Brian Fraser fraserb@gmail.com
615c5ad508
Fix several test failures by doing s/HTTP::Micro/HTTPMicro/
2012-08-21 14:37:10 -03:00
Daniel Nichter
8db5b77a4e
Change HTTPMicro to HTTP::Micro in Pingback to avoid 'subroutine redefined' errors.
2012-08-21 08:19:52 -06:00
Daniel Nichter
616a98f86c
Add --[no]version-check, VersionCheck, Pingback, and HTTPMicro to tools having the version check feature.
2012-08-17 16:25:56 -06:00
Daniel Nichter
272473348c
Remove _d from Percona::Toolkit because I can't get it to export correctly. Put Percona::Toolkit in most tools.
2012-08-17 12:35:12 -06:00
Daniel Nichter
f8c375a249
Build percona-toolkit-2.1.3
2012-08-03 19:41:41 +01:00
Brian Fraser
fdb81f763d
Merged fix-1007938-mysqlconfig-eol-comments and fixed it to only take # as a start of comment, and to respect quoted values
2012-08-02 12:21:59 -03:00
Brian Fraser
53a7537d11
Updated modules for all tools
2012-08-02 09:54:25 -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
Brian Fraser
f558b4b9da
Fix 984915: DSNParser does not check return value of do() calls
2012-07-12 22:42:54 -03:00
Daniel Nichter
6d71b91bfe
Build percona-toolkit-2.1.2
2012-06-12 07:06:39 -07:00
Brian Fraser fraserb@gmail.com
846f253661
Update all the modules
2012-06-11 22:08:42 -03:00
Baron Schwartz
47fb3d65e8
Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage.
2012-06-09 14:43:33 -04:00