MDEV-28030 row_discard_tablespace_for_mysql() can unlock data dictionary...

MDEV-28030 row_discard_tablespace_for_mysql() can unlock data dictionary without locking data dictionary

- row_discard_tablespace_for_mysql() could unlock the data dictionary lock without locking it in the first place.
parent 16c9eb56
......@@ -2495,7 +2495,8 @@ dberr_t row_discard_tablespace_for_mysql(dict_table_t *table, trx_t *trx)
fts_optimize_add_table(table);
}
trx->rollback();
row_mysql_unlock_data_dictionary(trx);
if (trx->dict_operation_lock_mode)
row_mysql_unlock_data_dictionary(trx);
return err;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment