1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

avoid sigsegv when open_ltable() fails in REPAIR ... USE_FRM

This commit is contained in:
serg@serg.mylan
2003-05-02 22:12:15 +02:00
parent 64b0bfcf00
commit fe560da59f

View File

@ -1049,6 +1049,11 @@ static int prepare_for_repair(THD* thd, TABLE_LIST* table,
{
DBUG_ENTER("prepare_for_repair");
if (!table->table)
{
DBUG_RETURN(send_check_errmsg(thd, table, "repair", "table is read-only or does not exists"));
}
if (!(check_opt->sql_flags & TT_USEFRM))
{
DBUG_RETURN(0);