Manual merge 5.0->5.1
This commit is contained in:
commit
857a0d6461
@ -4718,7 +4718,7 @@ ER_SLAVE_IGNORED_TABLE
|
|||||||
swe "Slav SQL tråden ignorerade frågan pga en replicate-*-table regel"
|
swe "Slav SQL tråden ignorerade frågan pga en replicate-*-table regel"
|
||||||
ER_INCORRECT_GLOBAL_LOCAL_VAR
|
ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||||
eng "Variable '%-.192s' is a %s variable"
|
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"
|
ger "Variable '%-.192s' ist eine %s-Variable"
|
||||||
nla "Variabele '%-.192s' is geen %s variabele"
|
nla "Variabele '%-.192s' is geen %s variabele"
|
||||||
spa "Variable '%-.192s' es una %s variable"
|
spa "Variable '%-.192s' es una %s variable"
|
||||||
|
@ -5701,7 +5701,6 @@ bool mysql_drop_user(THD *thd, List <LEX_USER> &list)
|
|||||||
|
|
||||||
while ((tmp_user_name= 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)))
|
if (!(user_name= get_current_user(thd, tmp_user_name)))
|
||||||
{
|
{
|
||||||
result= TRUE;
|
result= TRUE;
|
||||||
|
@ -6484,15 +6484,24 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
|
|||||||
thd->store_globals();
|
thd->store_globals();
|
||||||
lex_start(thd);
|
lex_start(thd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thd)
|
if (thd)
|
||||||
{
|
{
|
||||||
if (acl_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;
|
result= 1;
|
||||||
if (grant_reload(thd))
|
/*
|
||||||
result= 1;
|
When an error is returned, my_message may have not been called and
|
||||||
if (servers_reload(thd))
|
the client will hang waiting for a response.
|
||||||
result= 1; /* purecov: inspected */
|
*/
|
||||||
|
my_error(ER_UNKNOWN_ERROR, MYF(0), "FLUSH PRIVILEGES failed");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tmp_thd)
|
if (tmp_thd)
|
||||||
{
|
{
|
||||||
delete 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;
|
tmp_write_to_binlog= 0;
|
||||||
if (lock_global_read_lock(thd))
|
if (lock_global_read_lock(thd))
|
||||||
return 1; // Killed
|
return 1; // Killed
|
||||||
result= close_cached_tables(thd, tables, FALSE, (options & REFRESH_FAST) ?
|
if (close_cached_tables(thd, tables, FALSE, (options & REFRESH_FAST) ?
|
||||||
FALSE : TRUE, TRUE);
|
FALSE : TRUE, TRUE));
|
||||||
|
result= 1;
|
||||||
|
|
||||||
if (make_global_read_lock_block_commit(thd)) // Killed
|
if (make_global_read_lock_block_commit(thd)) // Killed
|
||||||
{
|
{
|
||||||
/* Don't leave things in a half-locked state */
|
/* 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
|
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();
|
my_dbopt_cleanup();
|
||||||
}
|
}
|
||||||
if (options & REFRESH_HOSTS)
|
if (options & REFRESH_HOSTS)
|
||||||
@ -6615,8 +6629,8 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
|
|||||||
#ifdef OPENSSL
|
#ifdef OPENSSL
|
||||||
if (options & REFRESH_DES_KEY_FILE)
|
if (options & REFRESH_DES_KEY_FILE)
|
||||||
{
|
{
|
||||||
if (des_key_file)
|
if (des_key_file && load_des_key_file(des_key_file))
|
||||||
result=load_des_key_file(des_key_file);
|
result= 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_REPLICATION
|
#ifdef HAVE_REPLICATION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user