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

[flash-360] support cyclic rename #137

Merged
merged 142 commits into from
Aug 6, 2019
Merged

Conversation

hanfei1991
Copy link
Member

No description provided.

zanmato1984 and others added 30 commits June 11, 2019 15:07
* DDL read and update by tikv's meta

* add dbg back

* refine test

* address comments
for (const auto & diff : diffs)
{
builder.applyDiff(diff);
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@hanfei1991 hanfei1991 changed the base branch from ddl to master August 5, 2019 11:47
@hanfei1991 hanfei1991 changed the title [flash-360][dnm] support cyclic rename [flash-360] support cyclic rename Aug 5, 2019
@hanfei1991 hanfei1991 changed the base branch from master to ddl August 5, 2019 12:04
@hanfei1991 hanfei1991 changed the base branch from ddl to master August 5, 2019 12:43
@hanfei1991
Copy link
Member Author

@zanmato1984 PTAL again

@hanfei1991
Copy link
Member Author

/rebuild

1 similar comment
@hanfei1991
Copy link
Member Author

/rebuild

@hanfei1991
Copy link
Member Author

/run-integrate-tests

@hanfei1991
Copy link
Member Author

/run-integration-tests

inline TableName generateTmpTable(const TableName & name) { return TableName(name.first, String(TmpTableNamePrefix) + name.second); }

TableNamePair resolveRename(
SchemaBuilder * builder, TableNameMap & map, TableNameMap::iterator it, TableNameSet & visited, TableNameMap::iterator & cycle_it)
Copy link
Contributor

@zanmato1984 zanmato1984 Aug 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems cycle_it has no effect but confusing people.

Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hanfei1991
Copy link
Member Author

/rebuild

@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991 hanfei1991 merged commit 2f8ee1b into master Aug 6, 2019
@hanfei1991 hanfei1991 deleted the hanfei-ddl/cyclic-rename branch August 6, 2019 05:31
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