Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0a3ca2f6
Commit
0a3ca2f6
authored
Jan 26, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#2505: MySQL reports "out of memory"
when DROP USER if --skip-grant-tables
parent
557bb526
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
43 additions
and
13 deletions
+43
-13
include/mysqld_error.h
include/mysqld_error.h
+2
-1
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+1
-0
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+1
-0
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+1
-0
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+2
-1
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+1
-0
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+1
-0
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+1
-0
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+1
-0
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+1
-0
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+1
-0
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+1
-0
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+1
-0
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+1
-0
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+1
-0
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+1
-0
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+1
-0
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+1
-0
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+1
-0
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+1
-0
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+1
-0
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+1
-0
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+1
-0
sql/sql_acl.cc
sql/sql_acl.cc
+17
-11
No files found.
include/mysqld_error.h
View file @
0a3ca2f6
...
@@ -305,4 +305,5 @@
...
@@ -305,4 +305,5 @@
#define ER_WARN_DEPRECATED_SYNTAX 1286
#define ER_WARN_DEPRECATED_SYNTAX 1286
#define ER_NON_UPDATABLE_TABLE 1287
#define ER_NON_UPDATABLE_TABLE 1287
#define ER_FEATURE_DISABLED 1288
#define ER_FEATURE_DISABLED 1288
#define ER_ERROR_MESSAGES 289
#define ER_SKIP_GRANT_TABLES 1289
#define ER_ERROR_MESSAGES 290
sql/share/czech/errmsg.txt
View file @
0a3ca2f6
...
@@ -301,3 +301,4 @@ character-set=latin2
...
@@ -301,3 +301,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/danish/errmsg.txt
View file @
0a3ca2f6
...
@@ -295,3 +295,4 @@ character-set=latin1
...
@@ -295,3 +295,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/dutch/errmsg.txt
View file @
0a3ca2f6
...
@@ -303,3 +303,4 @@ character-set=latin1
...
@@ -303,3 +303,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/english/errmsg.txt
View file @
0a3ca2f6
...
@@ -291,4 +291,5 @@ character-set=latin1
...
@@ -291,4 +291,5 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working",
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/estonian/errmsg.txt
View file @
0a3ca2f6
...
@@ -297,3 +297,4 @@ character-set=latin7
...
@@ -297,3 +297,4 @@ character-set=latin7
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/french/errmsg.txt
View file @
0a3ca2f6
...
@@ -292,3 +292,4 @@ character-set=latin1
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/german/errmsg.txt
View file @
0a3ca2f6
...
@@ -304,3 +304,4 @@ character-set=latin1
...
@@ -304,3 +304,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/greek/errmsg.txt
View file @
0a3ca2f6
...
@@ -292,3 +292,4 @@ character-set=greek
...
@@ -292,3 +292,4 @@ character-set=greek
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/hungarian/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=latin2
...
@@ -294,3 +294,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/italian/errmsg.txt
View file @
0a3ca2f6
...
@@ -292,3 +292,4 @@ character-set=latin1
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/japanese/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=ujis
...
@@ -294,3 +294,4 @@ character-set=ujis
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/korean/errmsg.txt
View file @
0a3ca2f6
...
@@ -292,3 +292,4 @@ character-set=euckr
...
@@ -292,3 +292,4 @@ character-set=euckr
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/norwegian-ny/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=latin1
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/norwegian/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=latin1
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/polish/errmsg.txt
View file @
0a3ca2f6
...
@@ -296,3 +296,4 @@ character-set=latin2
...
@@ -296,3 +296,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/portuguese/errmsg.txt
View file @
0a3ca2f6
...
@@ -293,3 +293,4 @@ character-set=latin1
...
@@ -293,3 +293,4 @@ character-set=latin1
"'%s' é desatualizado. Use '%s' em seu lugar.",
"'%s' é desatualizado. Use '%s' em seu lugar.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/romanian/errmsg.txt
View file @
0a3ca2f6
...
@@ -296,3 +296,4 @@ character-set=latin2
...
@@ -296,3 +296,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/russian/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=koi8r
...
@@ -294,3 +294,4 @@ character-set=koi8r
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/serbian/errmsg.txt
View file @
0a3ca2f6
...
@@ -287,3 +287,4 @@ character-set=cp1250
...
@@ -287,3 +287,4 @@ character-set=cp1250
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/slovak/errmsg.txt
View file @
0a3ca2f6
...
@@ -300,3 +300,4 @@ character-set=latin2
...
@@ -300,3 +300,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/spanish/errmsg.txt
View file @
0a3ca2f6
...
@@ -294,3 +294,4 @@ character-set=latin1
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/swedish/errmsg.txt
View file @
0a3ca2f6
...
@@ -292,3 +292,4 @@ character-set=latin1
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/ukrainian/errmsg.txt
View file @
0a3ca2f6
...
@@ -297,3 +297,4 @@ character-set=koi8u
...
@@ -297,3 +297,4 @@ character-set=koi8u
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/sql_acl.cc
View file @
0a3ca2f6
...
@@ -1114,7 +1114,7 @@ bool check_change_password(THD *thd, const char *host, const char *user)
...
@@ -1114,7 +1114,7 @@ bool check_change_password(THD *thd, const char *host, const char *user)
{
{
if
(
!
initialized
)
if
(
!
initialized
)
{
{
send_error
(
thd
,
ER_
PASSWORD_NOT_ALLOWED
);
/* purecov: inspected */
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
/* purecov: inspected */
return
(
1
);
/* purecov: inspected */
return
(
1
);
/* purecov: inspected */
}
}
if
(
!
thd
->
slave_thread
&&
if
(
!
thd
->
slave_thread
&&
...
@@ -1590,8 +1590,14 @@ static int replace_db_table(TABLE *table, const char *db,
...
@@ -1590,8 +1590,14 @@ static int replace_db_table(TABLE *table, const char *db,
char
what
=
(
revoke_grant
)
?
'N'
:
'Y'
;
char
what
=
(
revoke_grant
)
?
'N'
:
'Y'
;
DBUG_ENTER
(
"replace_db_table"
);
DBUG_ENTER
(
"replace_db_table"
);
if
(
!
initialized
)
{
my_error
(
ER_SKIP_GRANT_TABLES
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
}
/* Check if there is such a user in user table in memory? */
/* Check if there is such a user in user table in memory? */
if
(
!
initialized
||
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
if
(
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
{
{
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
...
@@ -2167,7 +2173,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
...
@@ -2167,7 +2173,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
if
(
!
initialized
)
if
(
!
initialized
)
{
{
send_error
(
thd
,
ER_
UNKNOWN_COM_ERROR
);
/* purecov: inspected */
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
}
}
if
(
rights
&
~
TABLE_ACLS
)
if
(
rights
&
~
TABLE_ACLS
)
...
@@ -2377,8 +2383,8 @@ int mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
...
@@ -2377,8 +2383,8 @@ int mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
DBUG_ENTER
(
"mysql_grant"
);
DBUG_ENTER
(
"mysql_grant"
);
if
(
!
initialized
)
if
(
!
initialized
)
{
{
my_error
(
ER_
UNKNOWN_COM_ERROR
,
MYF
(
0
));
/* purecov: tested */
my_error
(
ER_
SKIP_GRANT_TABLES
,
MYF
(
0
));
/* purecov: tested */
return
-
1
;
/* purecov: tested */
DBUG_RETURN
(
-
1
);
/* purecov: tested */
}
}
if
(
lower_case_table_names
&&
db
)
if
(
lower_case_table_names
&&
db
)
...
@@ -2982,8 +2988,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
...
@@ -2982,8 +2988,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
LINT_INIT
(
acl_user
);
LINT_INIT
(
acl_user
);
if
(
!
initialized
)
if
(
!
initialized
)
{
{
send_error
(
thd
,
ER_
UNKNOWN_COM_ERROR
);
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
1
);
}
}
if
(
lex_user
->
host
.
length
>
HOSTNAME_LENGTH
||
if
(
lex_user
->
host
.
length
>
HOSTNAME_LENGTH
||
lex_user
->
user
.
length
>
USERNAME_LENGTH
)
lex_user
->
user
.
length
>
USERNAME_LENGTH
)
...
@@ -3335,7 +3341,7 @@ int open_grant_tables(THD *thd, TABLE_LIST *tables)
...
@@ -3335,7 +3341,7 @@ int open_grant_tables(THD *thd, TABLE_LIST *tables)
if
(
!
initialized
)
if
(
!
initialized
)
{
{
send_error
(
thd
,
ER_
OUT_OF_RESOURCES
,
ER
(
ER_OUT_OF_RESOURCES
)
);
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
...
@@ -3416,7 +3422,7 @@ int mysql_drop_user(THD *thd, List <LEX_USER> &list)
...
@@ -3416,7 +3422,7 @@ int mysql_drop_user(THD *thd, List <LEX_USER> &list)
DBUG_ENTER
(
"mysql_drop_user"
);
DBUG_ENTER
(
"mysql_drop_user"
);
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
DBUG_RETURN
(
result
==
1
?
0
:
-
1
);
DBUG_RETURN
(
result
==
1
?
0
:
1
);
rw_wrlock
(
&
LOCK_grant
);
rw_wrlock
(
&
LOCK_grant
);
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
...
@@ -3529,7 +3535,7 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
...
@@ -3529,7 +3535,7 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
DBUG_ENTER
(
"mysql_revoke_all"
);
DBUG_ENTER
(
"mysql_revoke_all"
);
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
DBUG_RETURN
(
result
==
1
?
0
:
-
1
);
DBUG_RETURN
(
result
==
1
?
0
:
1
);
rw_wrlock
(
&
LOCK_grant
);
rw_wrlock
(
&
LOCK_grant
);
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment