mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22707: galera got stuck after flush tables
Deadlock is possible between applier thread and local committing thread with active FLUSH TABLE. Applier thread should skip table share checks and locks when opening table. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
This commit is contained in:
@ -1859,7 +1859,12 @@ retry_share:
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
if (!((flags & MYSQL_OPEN_IGNORE_FLUSH) ||
|
||||
(wsrep_on(thd) && thd->wsrep_applier)))
|
||||
#else
|
||||
if (!(flags & MYSQL_OPEN_IGNORE_FLUSH))
|
||||
#endif
|
||||
{
|
||||
if (share->tdc->flushed)
|
||||
{
|
||||
|
Reference in New Issue
Block a user