Skip to content
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

Merged
merged 15 commits into from
May 1, 2019
Merged

Tidb support #155

merged 15 commits into from
May 1, 2019

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Sep 15, 2018

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.

  • added a .gitignore file.

Tested on TiDB 2.1 + MySQL 5.7.19 (to make sure detected_server matched both correctly).

@maxbube
Copy link
Collaborator

maxbube commented Nov 22, 2018

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.

@morgo
Copy link
Contributor Author

morgo commented Nov 22, 2018

No problem. Thank you for taking a look!

@morgo
Copy link
Contributor Author

morgo commented Nov 23, 2018

Just an FYI: I removed a feature that I had added, but we no longer recommend (_tidb_row_id). The diff is a little cleaner now, and what is tidb related is pretty self-contained.

mydumper.c Outdated Show resolved Hide resolved
mydumper.c Outdated Show resolved Hide resolved
@maxbube maxbube added this to the release 0.9.7 milestone Feb 6, 2019
mydumper.c Outdated Show resolved Hide resolved
@morgo
Copy link
Contributor Author

morgo commented Feb 8, 2019

I have addressed the comments in 5e612b0

Thank you for the review!

@ihipop
Copy link

ihipop commented Mar 28, 2019

and update on this PR?

@maxbube maxbube merged commit b8e8ded into mydumper:master May 1, 2019
@morgo morgo deleted the tidb-support branch May 27, 2019 15:52
wimpunk pushed a commit to wimpunk/mydumper that referenced this pull request Jan 8, 2020
* 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
@davidducos davidducos modified the milestones: release 0.9.7, Release 0.10.1 Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants