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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user