Loading mysql-test/t/log_tables.test +2 −3 Original line number Diff line number Diff line Loading @@ -146,8 +146,6 @@ select "Mark that we woke up from TRUNCATE in the test" connection con1; disconnect con2; use test; # Loading @@ -162,7 +160,8 @@ insert into bug16905 values ('новое'); select * from mysql.general_log; drop table bug16905; # kill all connections disconnect con1; disconnect con2; --enable_ps_protocol sql/ha_myisam.cc +0 −18 Original line number Diff line number Diff line Loading @@ -1381,10 +1381,6 @@ void ha_myisam::info(uint flag) if (share->tmp_table == NO_TMP_TABLE) pthread_mutex_unlock(&share->mutex); raid_type= info.raid_type; raid_chunks= info.raid_chunks; raid_chunksize= info.raid_chunksize; /* Set data_file_name and index_file_name to point at the symlink value if table is symlinked (Ie; Real name is not same as generated name) Loading Loading @@ -1461,12 +1457,6 @@ void ha_myisam::update_create_info(HA_CREATE_INFO *create_info) { create_info->auto_increment_value=auto_increment_value; } if (!(create_info->used_fields & HA_CREATE_USED_RAID)) { create_info->raid_type= raid_type; create_info->raid_chunks= raid_chunks; create_info->raid_chunksize= raid_chunksize; } create_info->data_file_name=data_file_name; create_info->index_file_name=index_file_name; } Loading Loading @@ -1658,11 +1648,6 @@ int ha_myisam::create(const char *name, register TABLE *table_arg, (ulonglong) 0); create_info.data_file_length= ((ulonglong) share->max_rows * share->avg_row_length); create_info.raid_type=info->raid_type; create_info.raid_chunks= (info->raid_chunks ? info->raid_chunks : RAID_DEFAULT_CHUNKS); create_info.raid_chunksize= (info->raid_chunksize ? info->raid_chunksize : RAID_DEFAULT_CHUNKSIZE); create_info.data_file_name= info->data_file_name; create_info.index_file_name= info->index_file_name; Loading Loading @@ -1787,9 +1772,6 @@ bool ha_myisam::check_if_incompatible_data(HA_CREATE_INFO *info, uint options= table->s->db_options_in_use; if (info->auto_increment_value != auto_increment_value || info->raid_type != raid_type || info->raid_chunks != raid_chunks || info->raid_chunksize != raid_chunksize || info->data_file_name != data_file_name || info->index_file_name != index_file_name || table_changes == IS_EQUAL_NO) Loading sql/ha_partition.cc +0 −6 Original line number Diff line number Diff line Loading @@ -4284,9 +4284,6 @@ void ha_partition::info(uint flag) sortkey: Never used at any place so ignored ref_length: We set this to the value calculated and stored in local object raid_type: Set by first handler (MyISAM) raid_chunks: Set by first handler (MyISAM) raid_chunksize: Set by first handler (MyISAM) create_time: Creation time of table Set by first handler Loading @@ -4297,9 +4294,6 @@ void ha_partition::info(uint flag) file= m_file[0]; file->info(HA_STATUS_CONST); create_time= file->create_time; raid_type= file->raid_type; raid_chunks= file->raid_chunks; raid_chunksize= file->raid_chunksize; ref_length= m_ref_length; } if (flag & HA_STATUS_ERRKEY) Loading sql/handler.h +2 −6 Original line number Diff line number Diff line Loading @@ -266,7 +266,7 @@ enum enum_binlog_command { /* Bits in used_fields */ #define HA_CREATE_USED_AUTO (1L << 0) #define HA_CREATE_USED_RAID (1L << 1) #define HA_CREATE_USED_RAID (1L << 1) //RAID is no longer availble #define HA_CREATE_USED_UNION (1L << 2) #define HA_CREATE_USED_INSERT_METHOD (1L << 3) #define HA_CREATE_USED_MIN_ROWS (1L << 4) Loading Loading @@ -1068,14 +1068,12 @@ typedef struct st_ha_create_information ulonglong auto_increment_value; ulong table_options; ulong avg_row_length; ulong raid_chunksize; ulong used_fields; SQL_LIST merge_list; handlerton *db_type; enum row_type row_type; uint null_bits; /* NULL bits at start of record */ uint options; /* OR of HA_CREATE_ options */ uint raid_type,raid_chunks; uint merge_insert_method; uint extra_size; /* length of extra data segment */ bool table_existed; /* 1 in create if table existed */ Loading Loading @@ -1204,7 +1202,6 @@ class handler :public Sql_alloc ulonglong auto_increment_value; ha_rows records; /* Records in table */ ha_rows deleted; /* Deleted records */ ulong raid_chunksize; ulong mean_rec_length; /* physical reclength */ time_t create_time; /* When table was created */ time_t check_time; Loading @@ -1228,7 +1225,6 @@ class handler :public Sql_alloc /* Length of ref (1-8 or the clustered key length) */ uint ref_length; uint block_size; /* index block size */ uint raid_type,raid_chunks; FT_INFO *ft_handler; enum {NONE=0, INDEX, RND} inited; bool auto_increment_column_changed; Loading @@ -1245,7 +1241,7 @@ class handler :public Sql_alloc create_time(0), check_time(0), update_time(0), key_used_on_scan(MAX_KEY), active_index(MAX_KEY), ref_length(sizeof(my_off_t)), block_size(0), raid_type(0), ft_handler(0), inited(NONE), implicit_emptied(0), ft_handler(0), inited(NONE), implicit_emptied(0), pushed_cond(NULL) {} virtual ~handler(void) Loading sql/lex.h +0 −5 Original line number Diff line number Diff line Loading @@ -410,10 +410,6 @@ static SYMBOL symbols[] = { { "QUARTER", SYM(QUARTER_SYM)}, { "QUERY", SYM(QUERY_SYM)}, { "QUICK", SYM(QUICK)}, { "RAID0", SYM(RAID_0_SYM)}, { "RAID_CHUNKS", SYM(RAID_CHUNKS)}, { "RAID_CHUNKSIZE", SYM(RAID_CHUNKSIZE)}, { "RAID_TYPE", SYM(RAID_TYPE)}, { "RANGE", SYM(RANGE_SYM)}, { "READ", SYM(READ_SYM)}, { "READ_ONLY", SYM(READ_ONLY_SYM)}, Loading Loading @@ -512,7 +508,6 @@ static SYMBOL symbols[] = { { "STORAGE", SYM(STORAGE_SYM)}, { "STRAIGHT_JOIN", SYM(STRAIGHT_JOIN)}, { "STRING", SYM(STRING_SYM)}, { "STRIPED", SYM(RAID_STRIPED_SYM)}, { "SUBJECT", SYM(SUBJECT_SYM)}, { "SUBPARTITION", SYM(SUBPARTITION_SYM)}, { "SUBPARTITIONS", SYM(SUBPARTITIONS_SYM)}, Loading Loading
mysql-test/t/log_tables.test +2 −3 Original line number Diff line number Diff line Loading @@ -146,8 +146,6 @@ select "Mark that we woke up from TRUNCATE in the test" connection con1; disconnect con2; use test; # Loading @@ -162,7 +160,8 @@ insert into bug16905 values ('новое'); select * from mysql.general_log; drop table bug16905; # kill all connections disconnect con1; disconnect con2; --enable_ps_protocol
sql/ha_myisam.cc +0 −18 Original line number Diff line number Diff line Loading @@ -1381,10 +1381,6 @@ void ha_myisam::info(uint flag) if (share->tmp_table == NO_TMP_TABLE) pthread_mutex_unlock(&share->mutex); raid_type= info.raid_type; raid_chunks= info.raid_chunks; raid_chunksize= info.raid_chunksize; /* Set data_file_name and index_file_name to point at the symlink value if table is symlinked (Ie; Real name is not same as generated name) Loading Loading @@ -1461,12 +1457,6 @@ void ha_myisam::update_create_info(HA_CREATE_INFO *create_info) { create_info->auto_increment_value=auto_increment_value; } if (!(create_info->used_fields & HA_CREATE_USED_RAID)) { create_info->raid_type= raid_type; create_info->raid_chunks= raid_chunks; create_info->raid_chunksize= raid_chunksize; } create_info->data_file_name=data_file_name; create_info->index_file_name=index_file_name; } Loading Loading @@ -1658,11 +1648,6 @@ int ha_myisam::create(const char *name, register TABLE *table_arg, (ulonglong) 0); create_info.data_file_length= ((ulonglong) share->max_rows * share->avg_row_length); create_info.raid_type=info->raid_type; create_info.raid_chunks= (info->raid_chunks ? info->raid_chunks : RAID_DEFAULT_CHUNKS); create_info.raid_chunksize= (info->raid_chunksize ? info->raid_chunksize : RAID_DEFAULT_CHUNKSIZE); create_info.data_file_name= info->data_file_name; create_info.index_file_name= info->index_file_name; Loading Loading @@ -1787,9 +1772,6 @@ bool ha_myisam::check_if_incompatible_data(HA_CREATE_INFO *info, uint options= table->s->db_options_in_use; if (info->auto_increment_value != auto_increment_value || info->raid_type != raid_type || info->raid_chunks != raid_chunks || info->raid_chunksize != raid_chunksize || info->data_file_name != data_file_name || info->index_file_name != index_file_name || table_changes == IS_EQUAL_NO) Loading
sql/ha_partition.cc +0 −6 Original line number Diff line number Diff line Loading @@ -4284,9 +4284,6 @@ void ha_partition::info(uint flag) sortkey: Never used at any place so ignored ref_length: We set this to the value calculated and stored in local object raid_type: Set by first handler (MyISAM) raid_chunks: Set by first handler (MyISAM) raid_chunksize: Set by first handler (MyISAM) create_time: Creation time of table Set by first handler Loading @@ -4297,9 +4294,6 @@ void ha_partition::info(uint flag) file= m_file[0]; file->info(HA_STATUS_CONST); create_time= file->create_time; raid_type= file->raid_type; raid_chunks= file->raid_chunks; raid_chunksize= file->raid_chunksize; ref_length= m_ref_length; } if (flag & HA_STATUS_ERRKEY) Loading
sql/handler.h +2 −6 Original line number Diff line number Diff line Loading @@ -266,7 +266,7 @@ enum enum_binlog_command { /* Bits in used_fields */ #define HA_CREATE_USED_AUTO (1L << 0) #define HA_CREATE_USED_RAID (1L << 1) #define HA_CREATE_USED_RAID (1L << 1) //RAID is no longer availble #define HA_CREATE_USED_UNION (1L << 2) #define HA_CREATE_USED_INSERT_METHOD (1L << 3) #define HA_CREATE_USED_MIN_ROWS (1L << 4) Loading Loading @@ -1068,14 +1068,12 @@ typedef struct st_ha_create_information ulonglong auto_increment_value; ulong table_options; ulong avg_row_length; ulong raid_chunksize; ulong used_fields; SQL_LIST merge_list; handlerton *db_type; enum row_type row_type; uint null_bits; /* NULL bits at start of record */ uint options; /* OR of HA_CREATE_ options */ uint raid_type,raid_chunks; uint merge_insert_method; uint extra_size; /* length of extra data segment */ bool table_existed; /* 1 in create if table existed */ Loading Loading @@ -1204,7 +1202,6 @@ class handler :public Sql_alloc ulonglong auto_increment_value; ha_rows records; /* Records in table */ ha_rows deleted; /* Deleted records */ ulong raid_chunksize; ulong mean_rec_length; /* physical reclength */ time_t create_time; /* When table was created */ time_t check_time; Loading @@ -1228,7 +1225,6 @@ class handler :public Sql_alloc /* Length of ref (1-8 or the clustered key length) */ uint ref_length; uint block_size; /* index block size */ uint raid_type,raid_chunks; FT_INFO *ft_handler; enum {NONE=0, INDEX, RND} inited; bool auto_increment_column_changed; Loading @@ -1245,7 +1241,7 @@ class handler :public Sql_alloc create_time(0), check_time(0), update_time(0), key_used_on_scan(MAX_KEY), active_index(MAX_KEY), ref_length(sizeof(my_off_t)), block_size(0), raid_type(0), ft_handler(0), inited(NONE), implicit_emptied(0), ft_handler(0), inited(NONE), implicit_emptied(0), pushed_cond(NULL) {} virtual ~handler(void) Loading
sql/lex.h +0 −5 Original line number Diff line number Diff line Loading @@ -410,10 +410,6 @@ static SYMBOL symbols[] = { { "QUARTER", SYM(QUARTER_SYM)}, { "QUERY", SYM(QUERY_SYM)}, { "QUICK", SYM(QUICK)}, { "RAID0", SYM(RAID_0_SYM)}, { "RAID_CHUNKS", SYM(RAID_CHUNKS)}, { "RAID_CHUNKSIZE", SYM(RAID_CHUNKSIZE)}, { "RAID_TYPE", SYM(RAID_TYPE)}, { "RANGE", SYM(RANGE_SYM)}, { "READ", SYM(READ_SYM)}, { "READ_ONLY", SYM(READ_ONLY_SYM)}, Loading Loading @@ -512,7 +508,6 @@ static SYMBOL symbols[] = { { "STORAGE", SYM(STORAGE_SYM)}, { "STRAIGHT_JOIN", SYM(STRAIGHT_JOIN)}, { "STRING", SYM(STRING_SYM)}, { "STRIPED", SYM(RAID_STRIPED_SYM)}, { "SUBJECT", SYM(SUBJECT_SYM)}, { "SUBPARTITION", SYM(SUBPARTITION_SYM)}, { "SUBPARTITIONS", SYM(SUBPARTITIONS_SYM)}, Loading