mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
don't crash if ALTER TABLE fails and a long transaction blocks MDL upgrade
This commit is contained in:
@@ -505,6 +505,14 @@ void TABLE_SHARE::destroy()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_REPLICATION
|
||||
if (online_alter_binlog)
|
||||
{
|
||||
online_alter_binlog->cleanup();
|
||||
online_alter_binlog= NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
plugin_unlock(NULL, default_part_plugin);
|
||||
#endif /* WITH_PARTITION_STORAGE_ENGINE */
|
||||
|
Reference in New Issue
Block a user