1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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

This commit is contained in:
unknown
2003-05-02 22:12:15 +02:00
parent edde138b30
commit 870397892b

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);