1
0
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:
Sergei Golubchik
2022-06-01 21:52:27 +02:00
parent 332f41aae3
commit b2be2e39a6
6 changed files with 77 additions and 31 deletions

View File

@@ -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 */