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

parser: introduce a new privilege for the set config statement #835

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Apr 26, 2020

What problem does this PR solve?

Close #826.
After #768, we can use set config on TiDB to update configs of TiKV/PD.
Now the privilege of this statement is PrivSuper, which is not appropriate.
We should introduce a new privilege for it.

What is changed and how it works?

Introduce a new privilege CONFIG_PRIV.

Check List

Tests

  • Unit test

@qw4990 qw4990 added the type/enhancement New feature or request label Apr 26, 2020
@qw4990 qw4990 requested review from kennytm, tiancaiamao, zz-jason and a team April 26, 2020 13:03
@ghost ghost removed their request for review April 26, 2020 13:03
@codecov
Copy link

codecov bot commented Apr 26, 2020

Codecov Report

Merging #835 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #835   +/-   ##
=======================================
  Coverage   78.35%   78.36%           
=======================================
  Files          40       40           
  Lines       14755    14757    +2     
=======================================
+ Hits        11562    11564    +2     
  Misses       2512     2512           
  Partials      681      681           

Copy link
Contributor

@kennytm kennytm 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 added the status/LGT1 LGT1 label Apr 26, 2020
@qw4990
Copy link
Contributor Author

qw4990 commented Apr 27, 2020

/rebuild

@qw4990
Copy link
Contributor Author

qw4990 commented Apr 27, 2020

/run-all-tests

@tiancaiamao
Copy link
Collaborator

The build-integration test seems to be failed, is there a corresponding PR in TiDB?

@qw4990
Copy link
Contributor Author

qw4990 commented Apr 27, 2020

The build-integration test seems to be failed, is there a corresponding PR in TiDB?

Yes, it's pingcap/tidb#16847.

@tiancaiamao
Copy link
Collaborator

LGTM

@tiancaiamao tiancaiamao added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 LGT2 type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a new privilege for the set config statement
3 participants