-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non-atomic table swap #530
Comments
I never found any official documentation that explained this, and I remember that the discussions that lead to the table swap algorithm didn't involve any doc or textbook referencing. It would be good to have this defined somewhere. |
That issue is nearly identical to your blog post that @tivenwang linked to in the description. (Edited to add: I see there's some discussion in the comments, which satisfies the poster of this issue if not me). The MySQL code comments aren't very helpful here, talking about piglets and hogs (🐷). It might be worth asking someone at MySQL to explain it (maybe write up a docs bug?). |
It·s useful for me. |
At the time, our friend @MarkLeith of Oracle explained this to me. The explanation was lost in Slack's history rentention. Perhaps if he has the time he can explain again how DDL locks get higher priority over DML locks. 🙇 |
hi ~ I want to understand the principle of table swap from http://code.openark.org/blog/mysql/solving-the-non-atomic-table-swap-take-iii-making-it-atomic .
"A blocked RENAME is always prioritized over a blocked INSERT/UPDATE/DELETE, no matter who came first
"。
Questions :
is the rename is always have priority over DML? why? is there has a documentation page?
The text was updated successfully, but these errors were encountered: