Commit Graph

87 Commits

Author SHA1 Message Date
Brian Fraser fraserb@gmail.com
8e04e3df60 Fix for 1003315: dry-run + alter-fk-method = auto always fail. 2012-05-30 14:27:07 -03:00
Brian Fraser fraserb@gmail.com
56d3d9a3b5 Fix for 1002448 2012-05-27 23:18:50 -03:00
Daniel Nichter
fcd8958fb7 Validate --max|critical-load early and strongly, and check that the var exists and is defined. 2012-05-25 15:27:23 -06:00
Daniel Nichter
bbe6125d8f Validate --max|critical-load (work in progress). 2012-05-25 12:15:11 -06: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
29c121a244 Merge handle-deadlocks-pt-osc. 2012-05-25 09:25:38 -06:00
Daniel Nichter
c670ac4ba4 Update DSNParser in all tools. 2012-05-24 11:25:20 -06:00
Daniel Nichter
392f74fc60 Update MasterSlave in all tools and add "none" to --recursion-method docs. Tools pass their tests. 2012-05-17 08:54:36 -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
e946199534 Add --[no]drop-new-table. 2012-05-14 11:39:40 -06:00
Daniel Nichter
72d56e3c19 Catch Deadlock error and retry. 2012-05-14 11:31:26 -06:00
Daniel Nichter
ce9152f9c1 Document --alter limitations. 2012-05-07 10:50:57 -06:00
Daniel Nichter
5f9d06888c Don't find_chile_tables() if alter-fk-method=none. 2012-05-07 10:31:19 -06:00
Daniel Nichter
fd87572bf3 Fix syntax typo: _( should be _d(. 2012-04-26 14:56:18 -06:00
Daniel Nichter
c3724aedca Build percona-toolkit-2.1.1 2012-04-03 12:42:45 -07:00
Daniel Nichter
0089f31a35 Merge pt-osc-2.1. Fix NibbleItertor.pm to work with OobNibbleIterator when resuming at oob boundaries (t/pt-table-checksum/resume.t was failing). 2012-04-03 09:33:10 -06:00
Daniel Nichter
0dd19a6fc9 Fix typo. 2012-04-02 20:10:10 -06:00
Daniel Nichter
806fafdb31 Update modules in pt-online-schema-change. 2012-04-02 19:37:07 -06:00
Daniel Nichter
4ee198e8cd Add XXX comment about improperly copying . 2012-04-02 19:29:59 -06:00
Daniel Nichter
02e9d2eed9 Merge preserve-foreign-keys-bug-969726. 2012-04-02 18:22:51 -06:00
Daniel Nichter
a1cba706ec Update TableChunker in pt-table-sync, pt-upgrade, and pt-online-schema-change. 2012-03-30 10:37:16 -06:00
Daniel Nichter
296829b8e5 Add myself as a author. 2012-03-29 17:10:30 -06:00
Daniel Nichter
3d0cae5a60 Fix and test --alter-fk-method=none. 2012-03-29 16:53:11 -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
a666576685 Merge Baron's doc and err msg changes. 2012-03-29 15:25:18 -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
baron@percona.com
8cfcaf2636 terminology/docs update 2012-03-29 15:33:27 -04:00
baron@percona.com
8a29ad3960 terminology/docs update 2012-03-29 15:32:37 -04:00
baron@percona.com
571ca8cff6 documentation 2012-03-29 15:24:51 -04: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
baron@percona.com
d677436f73 Updated documentation, simplified code in some places 2012-03-28 23:44:26 -04:00
Daniel Nichter
1bdad7d647 Use unique trigger names. 2012-03-28 18:51:22 -06:00
Daniel Nichter
6c83106ce8 Use CleanupTask to ensure tool always, automatically cleans up. Move create triggers step before copy rows, to keep related code together. 2012-03-28 18:40:23 -06:00
Daniel Nichter
02b3574582 Add critical load to MySQLStatusWaiter.pm and pt-osc. Clean up the tool's docu. 2012-03-27 19:17:17 -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
baron@percona.com
3961c6d5c3 Added a couple of comments and changed output a bit to make success clearer 2012-03-26 22:18:25 -04:00
baron@percona.com
49d3f78108 comments for Daniel 2012-03-26 21:56:22 -04:00
Daniel Nichter
c2362b8367 Fix spellings errors. 2012-03-26 17:49:50 -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
ff60040dc9 Quote LIKE literal. Add LOW_PRIORITY to INSERT. _d print every sql executed. Explain in comment why CREATE TABLE may fail expectedly. Move %ignore_code and %warn_code up one scope. 2012-03-25 11:00:33 -06:00
Daniel Nichter
45c1f3bfb6 Make NibbleIter query comments customizable. Update the module in pt-table-checksum and pt-osc. 2012-03-25 10:37:19 -06:00
baron@percona.com
686a511b22 comments for daniel 2012-03-25 11:09:05 -04: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
7add482367 Improve error handling. Simplify output. Make --child-tables an array. Make --child-tables and --find-child-tables mutually exclusive. 2012-03-23 16:49:56 -06:00
Daniel Nichter
96206d4e0b Change --rename-table to --swap-tables. Make --progress work. Add --find-child-tables. Improve error handling and messages. Increase --retries from 2 to 3. 2012-03-23 11:16:46 -06:00
Daniel Nichter
8e6bd9c363 First working pt-osc 2.1 with --dry-run. 2012-03-22 18:52:14 -06:00
Daniel Nichter
d5832f65e0 Fully working but still untested pt-osc 2.1. 2012-03-22 12:04:41 -06:00
Daniel Nichter
f5b49769c3 First untested but mostly working pt-osc 2.1. 2012-03-22 11:29:29 -06:00