mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
WL 2826: Error handling of ALTER TABLE for partitioning
Final review fixes
This commit is contained in:
parent
14d75e5b9f
commit
6473c10445
2 changed files with 6 additions and 12 deletions
|
@ -1282,9 +1282,6 @@ typedef struct st_ddl_log_memory_entry
|
|||
} DDL_LOG_MEMORY_ENTRY;
|
||||
|
||||
|
||||
|
||||
#define DDL_LOG_HANDLER_TYPE_LEN 32
|
||||
|
||||
bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
|
||||
DDL_LOG_MEMORY_ENTRY **active_entry);
|
||||
bool write_execute_ddl_log_entry(uint first_entry,
|
||||
|
@ -1474,9 +1471,6 @@ extern ulong delayed_insert_timeout;
|
|||
extern ulong delayed_insert_limit, delayed_queue_size;
|
||||
extern ulong delayed_insert_threads, delayed_insert_writes;
|
||||
extern ulong delayed_rows_in_use,delayed_insert_errors;
|
||||
#ifdef ERROR_INJECT_SUPPORT
|
||||
extern ulong error_inject_value;
|
||||
#endif
|
||||
extern ulong slave_open_temp_tables;
|
||||
extern ulong query_cache_size, query_cache_min_res_unit;
|
||||
extern ulong slow_launch_threads, slow_launch_time;
|
||||
|
|
|
@ -764,20 +764,20 @@ bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
|
|||
int4store(&global_ddl_log.file_entry_buf[DDL_LOG_NEXT_ENTRY_POS],
|
||||
ddl_log_entry->next_entry);
|
||||
DBUG_ASSERT(strlen(ddl_log_entry->name) < FN_LEN);
|
||||
strncpy(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS],
|
||||
ddl_log_entry->name, FN_LEN);
|
||||
strmake(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS],
|
||||
ddl_log_entry->name, FN_LEN - 1);
|
||||
if (ddl_log_entry->action_type == DDL_LOG_RENAME_ACTION ||
|
||||
ddl_log_entry->action_type == DDL_LOG_REPLACE_ACTION)
|
||||
{
|
||||
DBUG_ASSERT(strlen(ddl_log_entry->from_name) < FN_LEN);
|
||||
strncpy(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS + FN_LEN],
|
||||
ddl_log_entry->from_name, FN_LEN);
|
||||
strmake(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS + FN_LEN],
|
||||
ddl_log_entry->from_name, FN_LEN - 1);
|
||||
}
|
||||
else
|
||||
global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS + FN_LEN]= 0;
|
||||
DBUG_ASSERT(strlen(ddl_log_entry->handler_name) < FN_LEN);
|
||||
strncpy(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS + (2*FN_LEN)],
|
||||
ddl_log_entry->handler_name, FN_LEN);
|
||||
strmake(&global_ddl_log.file_entry_buf[DDL_LOG_NAME_POS + (2*FN_LEN)],
|
||||
ddl_log_entry->handler_name, FN_LEN - 1);
|
||||
if (get_free_ddl_log_entry(active_entry, &write_header))
|
||||
{
|
||||
DBUG_RETURN(TRUE);
|
||||
|
|
Loading…
Add table
Reference in a new issue