mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 01:05:30 +02:00
Bug#6616
MySQL server 100% CPU if FLUSH TABLES WITH READ LOCK + INSERT
Infinite loop caused by missing update to thd version.
sql/sql_base.cc:
Bug#6616
thd version needs to be updated before reopening tables
to prevent an infinite loop.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
This commit is contained in:
parent
ede028b063
commit
079910b6f1
2 changed files with 2 additions and 0 deletions
|
|
@ -1265,6 +1265,7 @@ bool wait_for_tables(THD *thd)
|
|||
{
|
||||
/* Now we can open all tables without any interference */
|
||||
thd->proc_info="Reopen tables";
|
||||
thd->version= refresh_version;
|
||||
result=reopen_tables(thd,0,0);
|
||||
}
|
||||
pthread_mutex_unlock(&LOCK_open);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue