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

pt-osc patch fails on 2.2.17

rgormley opened this issue · comments

Patching pt-online-schema-change fails on 2.2.17:

root@toolbox:/root/shift/ptosc-patch# patch /usr/local/bin/pt-online-schema-change /root/shift/ptosc-patch/0001-ptosc-square-changes.patch
patching file /usr/bin/pt-online-schema-change
Hunk #2 succeeded at 3703 (offset 79 lines).
Hunk #3 succeeded at 5572 (offset 240 lines).
--snip--
Hunk #28 succeeded at 10285 (offset 414 lines).
Hunk #29 FAILED at 9976.
Hunk #30 succeeded at 10465 (offset 453 lines).
--snip--
Hunk #37 succeeded at 11834 (offset 524 lines).
Hunk #38 succeeded at 11874 with fuzz 2 (offset 528 lines).
Hunk #39 succeeded at 11906 with fuzz 2 (offset 540 lines).
Hunk #40 succeeded at 11975 with fuzz 2 (offset 540 lines).
Hunk #41 succeeded at 12086 (offset 548 lines).
Hunk #42 succeeded at 12153 (offset 566 lines).
1 out of 42 hunks FAILED -- saving rejects to file /usr/local/bin/pt-online-schema-change.rej

Thanks for pointing this out. I'll work on a patch for 2.2.17; will hopefully have it out next week

The patch now works on 2.2.15, 2.2.16, and 2.2.17