-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Display mDDLTableVersion
in mysql.tidb
table
#39778
Comments
/assign |
@xinxiao are you still working on this? I wanted to have a look if you aren't. @Defined2014 is this issue still relevant? I see that it's now 7 months old. And there's this function that checks the // CheckDDLTableVersion check if the tables related to concurrent DDL exists.
func (m *Meta) CheckDDLTableVersion() (DDLTableVersion, error) {
v, err := m.txn.Get(mDDLTableVersion)
if err != nil {
return -1, errors.Trace(err)
}
if string(v) == "" {
return InitDDLTableVersion, nil
}
ver, err := strconv.Atoi(string(v))
if err != nil {
return -1, errors.Trace(err)
}
return DDLTableVersion(ver), nil
} |
My idea is to display this variable in the
|
/assign |
@Defined2014 I have raised a PR that implements what you have suggested. Can you review it? |
Add bug label in order to cherry-pick to v7.5. |
Enhancement
We add
mDDLTableVersion
to control ddl related version update, like concurrency ddl and MDL. But it's hard to get current value by SQL now. I think we could displaymDDLTableVersion
inmysql.tidb
just likecurrentBootstrapVersion
.The text was updated successfully, but these errors were encountered: