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
6b2bd29a
Commit
6b2bd29a
authored
Aug 06, 2008
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge 5.0->5.1
parents
9f550e6f
27a17b25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
+26
-13
sql/share/errmsg.txt
sql/share/errmsg.txt
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+0
-1
sql/sql_parse.cc
sql/sql_parse.cc
+25
-11
No files found.
sql/share/errmsg.txt
View file @
6b2bd29a
...
...
@@ -4718,7 +4718,7 @@ ER_SLAVE_IGNORED_TABLE
swe "Slav SQL trden ignorerade frgan pga en replicate-*-table regel"
ER_INCORRECT_GLOBAL_LOCAL_VAR
eng "Variable '%-.192s' is a %s variable"
serbian "
Incorrect foreign key definition for '%-.192s': %s
"
serbian "
Promenljiva '%-.192s' je %s promenljiva
"
ger "Variable '%-.192s' ist eine %s-Variable"
nla "Variabele '%-.192s' is geen %s variabele"
spa "Variable '%-.192s' es una %s variable"
...
...
sql/sql_acl.cc
View file @
6b2bd29a
...
...
@@ -5701,7 +5701,6 @@ bool mysql_drop_user(THD *thd, List <LEX_USER> &list)
while
((
tmp_user_name
=
user_list
++
))
{
user_name
=
get_current_user
(
thd
,
tmp_user_name
);
if
(
!
(
user_name
=
get_current_user
(
thd
,
tmp_user_name
)))
{
result
=
TRUE
;
...
...
sql/sql_parse.cc
View file @
6b2bd29a
...
...
@@ -6484,15 +6484,24 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
thd
->
store_globals
();
lex_start
(
thd
);
}
if
(
thd
)
{
if
(
acl_reload
(
thd
))
result
=
1
;
if
(
grant_reload
(
thd
))
bool
reload_acl_failed
=
acl_reload
(
thd
);
bool
reload_grants_failed
=
grant_reload
(
thd
);
bool
reload_servers_failed
=
servers_reload
(
thd
);
if
(
reload_acl_failed
||
reload_grants_failed
||
reload_servers_failed
)
{
result
=
1
;
if
(
servers_reload
(
thd
))
result
=
1
;
/* purecov: inspected */
/*
When an error is returned, my_message may have not been called and
the client will hang waiting for a response.
*/
my_error
(
ER_UNKNOWN_ERROR
,
MYF
(
0
),
"FLUSH PRIVILEGES failed"
);
}
}
if
(
tmp_thd
)
{
delete
tmp_thd
;
...
...
@@ -6581,8 +6590,10 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
tmp_write_to_binlog
=
0
;
if
(
lock_global_read_lock
(
thd
))
return
1
;
// Killed
result
=
close_cached_tables
(
thd
,
tables
,
FALSE
,
(
options
&
REFRESH_FAST
)
?
FALSE
:
TRUE
,
TRUE
);
if
(
close_cached_tables
(
thd
,
tables
,
FALSE
,
(
options
&
REFRESH_FAST
)
?
FALSE
:
TRUE
,
TRUE
));
result
=
1
;
if
(
make_global_read_lock_block_commit
(
thd
))
// Killed
{
/* Don't leave things in a half-locked state */
...
...
@@ -6591,8 +6602,11 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
}
}
else
result
=
close_cached_tables
(
thd
,
tables
,
FALSE
,
(
options
&
REFRESH_FAST
)
?
FALSE
:
TRUE
,
FALSE
);
{
if
(
close_cached_tables
(
thd
,
tables
,
FALSE
,
(
options
&
REFRESH_FAST
)
?
FALSE
:
TRUE
,
FALSE
));
result
=
1
;
}
my_dbopt_cleanup
();
}
if
(
options
&
REFRESH_HOSTS
)
...
...
@@ -6615,8 +6629,8 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
#ifdef OPENSSL
if
(
options
&
REFRESH_DES_KEY_FILE
)
{
if
(
des_key_file
)
result
=
load_des_key_file
(
des_key_file
)
;
if
(
des_key_file
&&
load_des_key_file
(
des_key_file
)
)
result
=
1
;
}
#endif
#ifdef HAVE_REPLICATION
...
...
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