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

privilege:correct comments mistake #3250

Merged
merged 3 commits into from
May 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion privilege/privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (k keyType) String() string {

// Manager is the interface for providing privilege related operations.
type Manager interface {
// Show granted privileges for user.
// ShowGrants shows granted privileges for user.
ShowGrants(ctx context.Context, user string) ([]string, error)

// RequestVerification verifies user privilege for the request.
Expand Down
8 changes: 4 additions & 4 deletions privilege/privileges/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type userRecord struct {
Password string // max length 41
Privileges mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -62,7 +62,7 @@ type dbRecord struct {
User string
Privileges mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -77,7 +77,7 @@ type tablesPrivRecord struct {
TablePriv mysql.PrivilegeType
ColumnPriv mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand All @@ -91,7 +91,7 @@ type columnsPrivRecord struct {
Timestamp time.Time
ColumnPriv mysql.PrivilegeType

// Compiled from Host, cached for pattern match performance.
// patChars is compiled from Host, cached for pattern match performance.
patChars []byte
patTypes []byte
}
Expand Down