Commit Graph

31 Commits

Author SHA1 Message Date
Daniel Nichter
e27ad9b178 Test and fix --no-swap-tables and --no-drop-new-table. 2012-05-25 10:24:32 -06:00
Daniel Nichter
85ab246323 Test pt-osc --recursion-method=none with user that can't SHOW SLAVE HOSTS. 2012-05-17 10:10:22 -06:00
Daniel Nichter
6d0e207af7 Check if innodb_lock_wait_timeout exists, don't crash. 2012-05-16 17:36:19 -06:00
Daniel Nichter
9967739fa4 Update NibbleIterator in pt-osc to fix it choosing the wrong index instead of the PK; add bugs.t to test this. 2012-05-16 10:04:52 -06:00
Daniel Nichter
c1feb83b96 Uncomment cleanup lines in alter_active_table.t. 2012-04-02 19:32:48 -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
fcc3a44e23 Update alter_active_table.t and fix NibbleIterator to handle a growing table. 2012-03-29 15:23:38 -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
0207e712b8 Add sanity_checks.t. 2012-03-25 11:33:02 -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
9383572742 Merge trunk r174. 2012-02-07 13:10:11 -07:00
Daniel Nichter
5c6c28a6e6 Fix bug 925007 and bug 897483. 2012-02-01 11:01:49 -07:00
Daniel Nichter
048ad9493c Various test tweaks for stability. 2011-08-25 11:08:57 -06:00
Daniel Nichter
945cfbd153 Fix Bash tests. Add basic pt-align tests. 2011-08-02 15:14:06 -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