mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
take MDL_SHARED_WRITE instead of MDL_SHARED_NO_READ_WRITE for OPTIMIZE TABLE. For engines that need a stronger lock (like MyISAM), reopen the table with MDL_SHARED_NO_READ_WRITE.