1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

WL 2826: Error handling of ALTER TABLE for partitioning

Bug fixes


sql/ha_partition.cc:
  Bug fixes
sql/sql_partition.cc:
  Bug fixes
sql/sql_table.cc:
  Bug fixes
This commit is contained in:
unknown
2006-02-20 16:22:19 -05:00
parent de717a9962
commit 5b6c6c49b8
3 changed files with 14 additions and 11 deletions

View File

@@ -5678,7 +5678,7 @@ write_log_completed(ALTER_PARTITION_PARAM_TYPE *lpt, bool dont_crash)
{
partition_info *part_info= lpt->part_info;
uint count_loop= 0;
bool success;
bool not_success;
TABLE_LOG_MEMORY_ENTRY *log_entry= part_info->exec_log_entry;
DBUG_ENTER("write_log_completed");
@@ -5686,11 +5686,11 @@ write_log_completed(ALTER_PARTITION_PARAM_TYPE *lpt, bool dont_crash)
lock_global_table_log();
do
{
if (!(success= write_execute_table_log_entry(0UL, TRUE, &log_entry)))
if (!(not_success= write_execute_table_log_entry(0UL, TRUE, &log_entry)))
break;
my_sleep(1);
} while (count_loop++ < 20);
if (!success && !dont_crash)
if (not_success && !dont_crash)
{
/*
Failed to write 20 consecutive attempts to write. Bad...