mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
d324c03d0c
Dead code cleanup: part_info->num_parts usage was wrong and working incorrectly in mysql_drop_partitions() because num_parts is already updated in prep_alter_part_table(). We don't have to update part_info->partitions because part_info is destroyed at alter_partition_lock_handling(). Cleanups: - DBUG_EVALUATE_IF() macro replaced by shorter form DBUG_IF(); - Typo in ER_KEY_COLUMN_DOES_NOT_EXITS. Refactorings: - Splitted write_log_replace_delete_frm() into write_log_delete_frm() and write_log_replace_frm(); - partition_info via DDL_LOG_STATE; - set_part_info_exec_log_entry() removed. DBUG_EVALUATE removed DBUG_EVALUTATE was only added for consistency together with DBUG_EVALUATE_IF. It is not used anywhere in the code. DBUG_SUICIDE() fix on release build On release DBUG_SUICIDE() was statement. It was wrong as DBUG_SUICIDE() is used in expression context.
13 lines
497 B
Text
13 lines
497 B
Text
set global my_cache.key_buffer_size = 1024*1024;
|
|
create table t1 (i int) engine=myisam partition by hash (i) partitions 2;
|
|
xa start 'xid';
|
|
cache index t1 partition (non_existing_partition) in my_cache;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 assign_to_keycache error Wrong partition name or partition list
|
|
cache index t1 partition (p1) in my_cache;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 assign_to_keycache status OK
|
|
xa end 'xid';
|
|
xa rollback 'xid';
|
|
drop table t1;
|
|
set global my_cache.key_buffer_size = 0;
|