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

executor: notify TiDB update privilege after alter/drop user #5226

Merged
merged 2 commits into from
Nov 27, 2017

Conversation

tiancaiamao
Copy link
Contributor

Alter User and Drop User forget to do it.

Fix #5216

@breezewish
Copy link
Member

LGTM

@@ -219,6 +219,7 @@ func (e *SimpleExec) executeAlterUser(s *ast.AlterUserStmt) error {
errMsg := "Operation ALTER USER failed for " + strings.Join(failedUsers, ",")
return terror.ClassExecutor.New(CodeCannotUser, errMsg)
}
domain.GetDomain(e.ctx).NotifyUpdatePrivilege(e.ctx)
Copy link
Member

Choose a reason for hiding this comment

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

If we meet error here, add a log.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NotifyUpdatePrivilege already log errors.

@shenli
Copy link
Member

shenli commented Nov 27, 2017

LGTM

@shenli
Copy link
Member

shenli commented Nov 27, 2017

/run-all-tests

@tiancaiamao tiancaiamao merged commit e440ac3 into pingcap:master Nov 27, 2017
@tiancaiamao tiancaiamao deleted the notify-update-privilege branch November 27, 2017 03:45
tiancaiamao added a commit to tiancaiamao/tidb that referenced this pull request Nov 27, 2017
coocood pushed a commit that referenced this pull request Nov 29, 2017
…5232)

* executor: notify TiDB update privilege after alter/drop user (#5226)

* fix CI
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