Commit Graph

959 Commits

Author SHA1 Message Date
Brian Fraser
9512f631c9 Update all modules that use Quoter 2012-12-12 16:19:06 -03:00
Daniel Nichter
371f4a9e15 Update warning about using this tool in its docs. 2012-12-11 17:27:57 -07:00
Daniel Nichter
6c6ae95ea3 Use literal values instead of ? placeholders for CHANGE MASTER statement. 2012-12-11 17:23:06 -07:00
Daniel Nichter
b0ad60cdfa Document the new limitation: no LOCK IN SHARE MODE with MySQL 5.0. 2012-12-11 17:31:22 +00:00
Daniel Nichter
b41ae476ae Only use LOCK IN SHARE MODE with MySQL 5.1+. 2012-12-11 16:54:24 +00:00
Brian Fraser
557bffd19d Merged fix-1046440-pt-stalk-purge_samples 2012-12-11 11:55:34 -03:00
Brian Fraser
7f68789e61 Merged fix-1086259-pt-kill-log-dsn-wrong-timestamps 2012-12-11 11:51:01 -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
Daniel Nichter
2f1bb594f9 Update SlowLogParser in pqd and add test case. 2012-12-10 18:11:59 -07:00
Daniel Nichter
fd6eef65c8 Merge fix-genlog-db-bug 2012-12-10 16:41:11 -07:00
Brian Fraser
9f4ce57301 Add a missing .* to the backtracking explosion fix for 823431 2012-12-07 19:20:29 -03:00
Brian Fraser fraserb@gmail.com
4eaf6e51f8 Merged experimental-fix-986847-pt-stalk-set-command 2012-12-05 21:15:20 -03:00
Brian Fraser fraserb@gmail.com
f8c7c7f2d4 Merged fix-1015590-pt-mysql-summary-percona-server-5.5 2012-12-05 21:10:22 -03:00
Brian Fraser fraserb@gmail.com
f2fdc7dd13 Merged fix-1007938-mysqlconfig-eol-comments 2012-12-05 20:43:40 -03:00
Brian Fraser fraserb@gmail.com
d24f054649 Merged fix-937234-pqa-wrong-res.001 2012-12-05 20:35:14 -03:00
Brian Fraser fraserb@gmail.com
2f7345f06b Merged fix-1050737-1075638-ptc-division-by-zero-nibble_time 2012-12-05 20:32:25 -03:00
Brian Fraser fraserb@gmail.com
d5d90dad00 Merged fix-911385-schemaiterator-resume-plus-ignore-db 2012-12-05 20:30:29 -03:00
Brian Fraser fraserb@gmail.com
fa27779126 Merged fix-823431-pqa-hangs-large-query 2012-12-05 20:27:30 -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 fraserb@gmail.com
b6c9748656 Merged pxc-pt-mysql-summary 2012-12-05 13:57:13 -03:00
Brian Fraser fraserb@gmail.com
c9146b3c04 Fix for 1046440: pt-stalk purge_samples slows down checks
Like the bug submitter noted, the fix was simply to make purge_samples
only come into effect if the collection has been triggered.

I added a second purge_samples after the collect loop, which should
maintain the previous behavior for the non-collect case, and purge
any leftover files that passed the threshold during a stalk that
never triggered collection.
2012-12-05 13:20:06 -03:00
Brian Fraser
2bc72fc139 Fix for 1086259: pt-kill in non-daemon mode logs timestamps incorrectly 2012-12-04 18:05:32 -03:00
Brian Fraser
d2f1742606 Merged fix-917770-pt-config-diff-uninit-value-crash 2012-12-04 13:43:40 -03:00
Brian Fraser
e0c8fac54e Merged doc-patch-empty-replicate-table-1074179 2012-12-04 13:42:22 -03:00
Brian Fraser
a5d1021367 Rename "Cluster" to "Cluster Name" and "Node" to "Node Name" 2012-12-04 13:26:34 -03:00
Brian Fraser
15855fb076 Change feat_on_renamed() per Daniel's feedback 2012-12-04 13:17:58 -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
ee607b1f25 Change the ordering in the PXC section 2012-12-04 00:39:34 -03:00
Brian Fraser
40e5d050a6 Update modules for all tools using DSNParser 2012-12-03 00:48:11 -03:00
Brian Fraser
a3527f748c Fixed the Smooth Flushing report on 5.1, which was broken by the previous commit, and made it work on 5.5 2012-11-30 18:17:30 -03:00
Daniel Nichter
e69533e492 Test with MyISAM tables. Add PXC section to pt-archiver docs. 2012-11-30 19:25:35 +00: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
Brian Fraser
739babd9bf Remove the B<> and reword the new text 2012-11-29 22:48:13 -03:00
Brian Fraser
ee41d4deb4 Introduce feat_on_renamed, a wrapper around feat_on for renamed variables 2012-11-29 22:32:22 -03:00
Daniel Nichter
90a91cd384 Merge pt-osc-pxc-tests. 2012-11-29 17:10:51 -07:00
Daniel Nichter
8549fe5d99 Test and require wsrep_OSU_method=TOI. 2012-11-29 23:26:53 +00:00
Brian Fraser
98707e937c pt-mysql-summary: Feedback from Fred & Jay; Display wsrep_slave_threads, and also parse & display pc.ignore_sb, pc.ignore_quorum, gcache.size, gcache.dir, gcache.name, all from wsrep_provider_options 2012-11-29 19:38:50 -03:00
Daniel Nichter
13318a9710 Update modules in ptc. 2012-11-29 22:32:31 +00:00
Daniel Nichter
9e97edebd2 Check PXC version in ptc and pt-osc, die if < 5.5.28. 2012-11-29 22:26:46 +00:00
Daniel Nichter
10c8654a49 Update PXC section in ptc and pt-osc docs to say that 5.5.28-23.7 is required, not 5.5.27-23.6 because of bug 1040108. 2012-11-29 22:09:32 +00:00
Brian Fraser
ff3d496cf0 pt-mysql-summary: Make sure the Status Counters don't use scientific notation 2012-11-29 18:08:59 -03:00
Brian Fraser
e71d3adb96 Merged fix-1079341-pt-osc-skip-myisam-fk-checks 2012-11-29 17:15:56 -03:00
Brian Fraser
2614eabd31 Merged fix-1074179-ptc-replicate-check-only-filters 2012-11-29 17:14:14 -03:00
Brian Fraser
b37c138ec8 Merged fix-1052475-ptc-uninit-crash-slave-errors 2012-11-29 17:12:29 -03:00
Brian Fraser
cddead8a69 Merged fix-831525-pqd-mangled-help 2012-11-29 17:10:54 -03:00
Brian Fraser
713457226a Merged fix-887638-ptqa-negative-at-byte 2012-11-29 17:09:33 -03:00
Daniel Nichter
e9d064c816 Fix a code comment. 2012-11-28 21:19:52 +00:00
Daniel Nichter
824c34b5d2 Only check --alter if given. Fix some tests, add add_col to make some tests work on PXC or not. 2012-11-28 21:11:29 +00:00
Daniel Nichter
d515e3b382 r472 was a miscommit: it includes new --check-alter check for cluster node+MyISAM node and pxc.t. 2012-11-28 17:58:40 +00:00