mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge tag 'mariadb-10.0.23' into 10.0-galera
This commit is contained in:
@ -4686,6 +4686,20 @@ end_with_restore_list:
|
||||
}
|
||||
#endif /* WITH_WSREP*/
|
||||
|
||||
#ifdef HAVE_REPLICATION
|
||||
if (lex->type & REFRESH_READ_LOCK)
|
||||
{
|
||||
/*
|
||||
We need to pause any parallel replication slave workers during FLUSH
|
||||
TABLES WITH READ LOCK. Otherwise we might cause a deadlock, as
|
||||
worker threads eun run in arbitrary order but need to commit in a
|
||||
specific given order.
|
||||
*/
|
||||
if (rpl_pause_for_ftwrl(thd))
|
||||
goto error;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
reload_acl_and_cache() will tell us if we are allowed to write to the
|
||||
binlog or not.
|
||||
@ -4735,6 +4749,10 @@ end_with_restore_list:
|
||||
if (!res)
|
||||
my_ok(thd);
|
||||
}
|
||||
#ifdef HAVE_REPLICATION
|
||||
if (lex->type & REFRESH_READ_LOCK)
|
||||
rpl_unpause_after_ftwrl(thd);
|
||||
#endif
|
||||
|
||||
break;
|
||||
}
|
||||
@ -6595,6 +6613,7 @@ bool check_fk_parent_table_access(THD *thd,
|
||||
table_name.str= (char *) thd->memdup(fk_key->ref_table.str,
|
||||
fk_key->ref_table.length+1);
|
||||
table_name.length= my_casedn_str(files_charset_info, table_name.str);
|
||||
db_name.length = my_casedn_str(files_charset_info, db_name.str);
|
||||
}
|
||||
|
||||
parent_table.init_one_table(db_name.str, db_name.length,
|
||||
|
Reference in New Issue
Block a user