Commit Graph

32 Commits

Author SHA1 Message Date
Daniel Nichter
1ec018fd82 Simplify and reword --statistics code, tests, and docs. 2012-11-08 18:05:02 -07:00
Brian Fraser
74cd9233c3 Tweaked the report format, which now includes the number of INSERTs 2012-11-06 14:22:56 -03:00
Brian Fraser
cb3fb74082 Fix for 1045317: Added a --statistics option to pt-osc 2012-10-30 21:45:52 -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
Brian Fraser fraserb@gmail.com
ba2ddf682b Changed all the pt-osc tests to use full_output, since output uses eval {} 2012-06-07 17:46:19 -03:00
Baron Schwartz
b9304dabb5 Fix a number of SQL queries to work with ANSI_QUOTES 2012-06-06 23:14:20 -04:00
Daniel Nichter
dac0731251 Remove PerconaTest::wait_for_table() after calls to Sandbox::load_file() which now implicitly calls Sandbox::wait_for_slaves(). 2012-06-07 10:25:44 -04:00
Baron Schwartz
673058e012 put some feedback in t/pt-online-schema-change/basics.t for impatient testers 2012-06-06 13:15:33 -04:00
Daniel Nichter
04d6a51074 Fix TableParser.t modifying mysql.user and mysql.db, and pt-online-schema-change/basics.t modifying mysql.proc. 2012-06-05 11:51:33 -07:00
Daniel Nichter
bdbb66d22b Re-add calls to Sandbox::ok(). 2012-06-03 13:54:32 -04:00
Daniel Nichter
e27ad9b178 Test and fix --no-swap-tables and --no-drop-new-table. 2012-05-25 10:24:32 -06:00
Daniel Nichter
02e9d2eed9 Merge preserve-foreign-keys-bug-969726. 2012-04-02 18:22:51 -06:00
Daniel Nichter
3d0cae5a60 Fix and test --alter-fk-method=none. 2012-03-29 16:53:11 -06:00
Daniel Nichter
767aed2a95 Test MAX(pd_col) and AUTO_INCREMENT. 2012-03-29 16:06:12 -06:00
Daniel Nichter
382cb24367 Unset fk_alter_method if there's no child tables. 2012-03-29 15:35:08 -06:00
Daniel Nichter
2dfb3318c2 Test sakila.staff using auto-chosen drop_swap. 2012-03-29 11:38:35 -06:00
Daniel Nichter
044b16f230 Change --update-foreign-keys-method to --alter-foreign-keys-method and make it required if there are child tables. Add 'auto' and 'none' (this one yet implemented) as methods. Fix drop_swap when it's auto-chosen. Test that the expected method is used. Exit 1 instead of 0 if user didn't specify required options. 2012-03-29 11:30:20 -06:00
Daniel Nichter
4c542a71fc Remove reminents of stuff copied in from pt-table-checksum. Handle errors properly in exec_nibble(). 2012-03-27 19:06:35 -06:00
Daniel Nichter
dc229d76ff Auto-determine --update-foreign-keys-method unless specified. Auto-find --child-tables unless specified. Handle fk refs in different dbs. Increase chunk size limit from 2.0 to 4.0. Change 'drop_old_table' update fk method to 'drop_swap'. 2012-03-25 15:45:52 -06:00
Daniel Nichter
82aa518774 Remove new-table options and enhance error msg if creating new table fails. 2012-03-25 12:24:27 -06:00
Daniel Nichter
3589ec2c7c Test that fk constraints actually still hold. 2012-03-25 11:45:34 -06:00
Daniel Nichter
d3ad8c84c0 Do not ever create --new-table. Rewrite basics.t. Add more debug statements. 2012-03-24 12:47:08 -06:00
Daniel Nichter
b5160b4b71 Fix number of tests. 2012-03-06 13:16:42 -07:00
Daniel Nichter
d20d8bb878 Merge lp:~percona-toolkit-dev/percona-toolkit/fix-osc-repl-bug-933232. 2012-03-02 13:29:44 -08:00
Daniel Nichter
866a042444 Add --execute and die unless it's given. Enhance docu/risks about replication. 2012-03-02 12:30:16 -08:00
Daniel Nichter
a33031e6e4 Merge 2.0 r187. 2012-02-21 14:26:44 -07:00
Daniel Nichter
7c76b25179 Fix basics.t so it doesn't break replication. Add IF EXISTS to DROP TABLE statements. 2012-02-21 12:34:21 -07:00
Daniel Nichter
75457eaadd Test, update modules, and fix bug 873598 in pt-online-schema-change. 2012-02-21 09:06:08 -07:00
Daniel Nichter
048ad9493c Various test tweaks for stability. 2011-08-25 11:08:57 -06:00
Daniel Nichter
eb01431399 Change MaatkitTest to PerconaTest in all tool tests. Add stub tests for pt-align and pt-collect. 2011-07-12 16:56:55 -06:00
Daniel Nichter
8e11cd85b3 Change mk_tool::main() to pt_tool::main() in all tests. 2011-06-29 11:56:49 -06:00
Daniel Nichter
b4b6376be1 Add forked Maatkit tools in bin/ and their tests in t/. 2011-06-24 16:02:05 -06:00