square / shift

shift is an application that helps you run schema migrations on MySQL databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown option: save-state

elranr opened this issue · comments

After the first check which passed , I did try the actual change to the DB.
Error before copy records:
redundant argument in printf at /usr/bin/pt-online-schema-change line 3520

What version of percona-toolkit are you using?

Unrelated to anything in the actual patch, but what appears to be happening is that newer versions of perl (which you must be using) throw a warning where old versions didn't, and pt-online-schema-change exits on any warning. The real solution is for me to update the patch to work on the latest version of pt-online-schema-change (which presumably has fixed this problem), which I will try to do within the next week.

If you want to try a short term fix, you can delete line 3523 and replace the comma at the end of line 3522 with a semicolon. That should get you past the current error.

The manual changes solved the issue but still patch for the new version of pt-online-schema-change will be very helpful