mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MDEV-9155 Enabling Defragmenting in 10.1.8 still causes OPTIMIZE TABLE to take metadatalocks
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.
This commit is contained in:
parent
5ef0ce4131
commit
153259874b
7 changed files with 74 additions and 10 deletions
|
|
@ -2736,7 +2736,7 @@ ha_innobase::ha_innobase(
|
|||
:handler(hton, table_arg),
|
||||
int_table_flags(HA_REC_NOT_IN_SEQ |
|
||||
HA_NULL_IN_KEY | HA_CAN_VIRTUAL_COLUMNS |
|
||||
HA_CAN_INDEX_BLOBS |
|
||||
HA_CAN_INDEX_BLOBS | HA_CONCURRENT_OPTIMIZE |
|
||||
HA_CAN_SQL_HANDLER |
|
||||
HA_PRIMARY_KEY_REQUIRED_FOR_POSITION |
|
||||
HA_PRIMARY_KEY_IN_READ_INDEX |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue