1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-28771 Assertion `table->in_use&&tdc->flushed' failed after ALTER

don't simply set tdc->flushed, use flush_unused(1) that removes opened
but unused TABLE instances (that would otherwise prevent TABLE_SHARE from
being closed by keeping the ref_count>0).
This commit is contained in:
Sergei Golubchik
2022-06-29 16:57:22 +02:00
parent 754333e6ad
commit 62a1e282d0
3 changed files with 92 additions and 1 deletions

View File

@ -12014,7 +12014,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
}
else if (online) // error was on copy stage
{
from->s->tdc->flushed= 1; // to free the binlog
from->s->tdc->flush_unused(1); // to free the binlog
}
#endif