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

infoschema: use the unified infoschema in "select ... information_schema.tables" #7459

Merged
merged 2 commits into from
Aug 23, 2018

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Aug 22, 2018

What problem does this PR solve?

Fix #7421.
In the same executor, the line uses the latest infoschema to get dbs, but we use the transaction's infoschema to get table on another line .
The latest and a transaction's infoschema may be different when we do a lot of DDL.

What is changed and how it works?

Use the unified infoschema. In the same executor, we use the transaction's infoschema.

Check List

Tests

Side effects
This problem will appear after this #7037.

@zimulala zimulala added the type/bugfix This PR fixes a bug. label Aug 22, 2018
@zimulala
Copy link
Contributor Author

/run-all-tests

@jackysp
Copy link
Member

jackysp commented Aug 22, 2018

It's better to add a case according to #7421 , though it may be hard.

@coocood
Copy link
Member

coocood commented Aug 22, 2018

LGTM
@jackysp I think it's not a critical bug, and the fix is simple, the manual test is enough.

@zimulala zimulala added status/LGT1 Indicates that a PR has LGTM 1. status/all tests passed labels Aug 22, 2018
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood coocood added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 23, 2018
@ngaut ngaut merged commit 22b2cb6 into pingcap:master Aug 23, 2018
@zimulala zimulala deleted the info-tables branch November 8, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants