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

ddl: Unify drop table index and tiny clean up #823

Merged
merged 2 commits into from
Jan 7, 2016

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Jan 4, 2016

No description provided.

@@ -190,14 +191,10 @@ func (d *ddl) delKeysWithPrefix(prefix kv.Key) error {
return nil
})

if err != nil {
// if err or delete no keys, returns.
if err != nil || len(keys) == 0 {
Copy link
Member

Choose a reason for hiding this comment

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

We should keep check err and value separately, like old code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it.

@qiuyesuifeng
Copy link
Member

LGTM
@siddontang PTAL

@zimulala
Copy link
Contributor Author

zimulala commented Jan 7, 2016

PTAL @siddontang

@siddontang
Copy link
Member

No need to handle drop column data?

@zimulala
Copy link
Contributor Author

zimulala commented Jan 7, 2016

@siddontang
no, because drop column need handle and columnID to form the key, can't delete with prefix.

@siddontang
Copy link
Member

LGTM

zimulala added a commit that referenced this pull request Jan 7, 2016
ddl: Unify drop table index and tiny clean up
@zimulala zimulala merged commit 59ecc2a into master Jan 7, 2016
@zimulala zimulala deleted the zimuxia/unify-del-idx branch January 7, 2016 05:03
xhebox pushed a commit to xhebox/tidb that referenced this pull request Sep 28, 2021
* add auto_random table option support

* .

* .
xhebox pushed a commit to xhebox/tidb that referenced this pull request Oct 8, 2021
* add auto_random table option support

* .

* .
ti-chi-bot pushed a commit that referenced this pull request Oct 9, 2021
* add auto_random table option support

* .

* .
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.

3 participants