-
Notifications
You must be signed in to change notification settings - Fork 458
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
Tidb support #155
Tidb support #155
Conversation
Hi @morgo , thanks for the PR!! Sorry for the delayed response, I will give it try and if all goes good I will merge it, on what I won't be able to commit is on future releases tests and bug fixes affecting only Tidb because as you may know I already have limited time to just keep up to date on what is supported today. |
No problem. Thank you for taking a look! |
Just an FYI: I removed a feature that I had added, but we no longer recommend ( |
I have addressed the comments in 5e612b0 Thank you for the review! |
and update on this PR? |
* Add TiDB Support to mydumper * Added a .gitignore file * Exit if snapshot can not be acquired * Added missing free for query. * Changed tidb-snapshot flag to lower case Makes more sense * Added optimization for _tidb_rowid * Fixed formatting, removed debugging * Revert unnecessary change * Small fixes * Fixed bug in TZ being lost to detected_server * Changed from NOW() to MASTER STATUS for TiDB TSO * Removed _tidb_rowid (no longer recommended) * Reverted formatting change * Addressed PR feedback
Add version detection for TiDB (detected_server).
Added support for tidb_snapshot option.
Auto-set tidb_snapshot to 1 second ago when TiDB detected.
Added optimization to dump _tidb_row id when it exists.
Tested on TiDB 2.1 + MySQL 5.7.19 (to make sure detected_server matched both correctly).