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

filter: use TiDB's IsMemOrSysDB() method in IsSystemSchema() #316

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Feb 9, 2020

What problem does this PR solve?

TiDB introduced two additional system schemas in pingcap/tidb#13757 (metrics_schema) and pingcap/tidb#14147 (inspection_schema), which filter.IsSystemSchema() currently cannot recognize.

What is changed and how it works?

To avoid playing catch up with TiDB in the future, we changed the implementation of filter.IsSystemSchema() to forward to the standard "github.com/pingcap/tidb/util".IsMemOrSysDB().

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

Related changes

@kennytm
Copy link
Contributor Author

kennytm commented Feb 9, 2020

PTAL @amyangfei @leoppro

Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

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

LGTM

@kennytm kennytm merged commit 4a4a6a8 into master Feb 10, 2020
@kennytm kennytm deleted the kennytm/use-tidb-system-schema branch March 6, 2020 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants