From ef49ad7719aa3ef07e32b94ff16f0d95f4a2cdae Mon Sep 17 00:00:00 2001 From: louishust Date: Thu, 11 May 2017 23:09:22 +0800 Subject: [PATCH] privilege:correct comments mistake --- privilege/privilege.go | 2 +- privilege/privileges/cache.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/privilege/privilege.go b/privilege/privilege.go index df7e7de505b8b..f414be433ca40 100644 --- a/privilege/privilege.go +++ b/privilege/privilege.go @@ -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. diff --git a/privilege/privileges/cache.go b/privilege/privileges/cache.go index 5cdfcf706de1b..61a75ef61aea6 100644 --- a/privilege/privileges/cache.go +++ b/privilege/privileges/cache.go @@ -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 } @@ -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 } @@ -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 } @@ -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 }