mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge station.:/mnt/raid/alik/MySQL/devel/5.1
into station.:/mnt/raid/alik/MySQL/devel/5.1-rt
This commit is contained in:
@ -3991,6 +3991,7 @@ static int fast_end_partition(THD *thd, ulonglong copied,
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
table->file->print_error(error, MYF(0));
|
||||
close_thread_tables(thd);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
||||
@ -6113,7 +6114,7 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
(error= table->file->repair_partitions(thd))))
|
||||
{
|
||||
table->file->print_error(error, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
else if (fast_alter_partition & HA_PARTITION_ONE_PHASE)
|
||||
@ -6160,7 +6161,7 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
if (mysql_write_frm(lpt, WFRM_WRITE_SHADOW | WFRM_PACK_FRM) ||
|
||||
mysql_change_partitions(lpt))
|
||||
{
|
||||
DBUG_RETURN(TRUE);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
else if (alter_info->flags == ALTER_DROP_PARTITION)
|
||||
@ -6253,7 +6254,7 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
(release_name_lock(lpt), FALSE))
|
||||
{
|
||||
handle_alter_part_error(lpt, not_completed, TRUE, frm_install);
|
||||
DBUG_RETURN(TRUE);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
else if ((alter_info->flags & ALTER_ADD_PARTITION) &&
|
||||
@ -6322,7 +6323,7 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
(release_name_lock(lpt), FALSE))
|
||||
{
|
||||
handle_alter_part_error(lpt, not_completed, FALSE, frm_install);
|
||||
DBUG_RETURN(TRUE);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -6415,7 +6416,7 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
(release_name_lock(lpt), FALSE))
|
||||
{
|
||||
handle_alter_part_error(lpt, not_completed, FALSE, frm_install);
|
||||
DBUG_RETURN(TRUE);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
/*
|
||||
@ -6425,6 +6426,9 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
DBUG_RETURN(fast_end_partition(thd, lpt->copied, lpt->deleted,
|
||||
table, table_list, FALSE, NULL,
|
||||
written_bin_log));
|
||||
err:
|
||||
close_thread_tables(thd);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user