mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
avoid sigsegv when open_ltable() fails in REPAIR ... USE_FRM
This commit is contained in:
@@ -1049,6 +1049,11 @@ static int prepare_for_repair(THD* thd, TABLE_LIST* table,
|
|||||||
{
|
{
|
||||||
DBUG_ENTER("prepare_for_repair");
|
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))
|
if (!(check_opt->sql_flags & TT_USEFRM))
|
||||||
{
|
{
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
|
Reference in New Issue
Block a user