Loading innobase/include/srv0srv.h +2 −4 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ extern ulint* srv_data_file_is_raw_partition; extern ibool srv_auto_extend_last_data_file; extern ulint srv_last_file_size_max; extern ulint srv_auto_extend_increment; extern ulong srv_auto_extend_increment; extern ibool srv_created_new_raw; Loading Loading @@ -112,11 +112,9 @@ extern ibool srv_use_checksums; extern ibool srv_set_thread_priorities; extern int srv_query_thread_priority; extern ulint srv_max_purge_lag; extern ulong srv_max_purge_lag; extern ibool srv_use_awe; extern ibool srv_use_adaptive_hash_indexes; extern ulint srv_max_purge_lag; /*-------------------------------------------*/ extern ulint srv_n_rows_inserted; Loading innobase/row/row0sel.c +1 −1 Original line number Diff line number Diff line Loading @@ -2501,7 +2501,7 @@ row_sel_store_mysql_rec( } /* Handle UCS2 strings differently. */ if (templ->mbminlen == 2) { if (pad_char != '\0' && templ->mbminlen == 2) { /* There are two bytes per char, so the length has to be an even number. */ ut_a(!(templ->mysql_col_len & 1)); Loading innobase/srv/srv0srv.c +3 −4 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ ulint srv_last_file_size_max = 0; /* if != 0, this tells the max size auto-extending may increase the last data file size */ ulint srv_auto_extend_increment = 8; /* If the last data file is ulong srv_auto_extend_increment = 8; /* If the last data file is auto-extended, we add this many pages to it at a time */ ulint* srv_data_file_is_raw_partition = NULL; Loading Loading @@ -323,9 +323,6 @@ disable adaptive hash indexes */ ibool srv_use_awe = FALSE; ibool srv_use_adaptive_hash_indexes = TRUE; /* Maximum allowable purge history length. <=0 means 'infinite'. */ ulint srv_max_purge_lag = 0; /*-------------------------------------------*/ ulint srv_n_spin_wait_rounds = 20; ulint srv_n_free_tickets_to_enter = 500; Loading Loading @@ -972,6 +969,8 @@ srv_general_init(void) /*======================= InnoDB Server FIFO queue =======================*/ /* Maximum allowable purge history length. <=0 means 'infinite'. */ ulong srv_max_purge_lag = 0; /************************************************************************* Puts an OS thread to wait if there are too many concurrent threads Loading myisam/mi_create.c +15 −0 Original line number Diff line number Diff line Loading @@ -558,6 +558,21 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, create_flag=MY_DELETE_OLD; } /* If a MRG_MyISAM table is in use, the mapped MyISAM tables are open, but no entry is made in the table cache for them. A TRUNCATE command checks for the table in the cache only and could be fooled to believe, the table is not open. Pull the emergency brake in this situation. (Bug #8306) */ if (test_if_reopen(filename)) { my_printf_error(0, "MyISAM table '%s' is in use " "(most likely by a MERGE table). Try FLUSH TABLES.", MYF(0), name + dirname_length(name)); goto err; } if ((file= my_create_with_symlink(linkname_ptr, filename, 0, O_RDWR | O_TRUNC, Loading myisam/mi_open.c +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ if (pos > end_pos) \ ** In MySQL the server will handle version issues. ******************************************************************************/ static MI_INFO *test_if_reopen(char *filename) MI_INFO *test_if_reopen(char *filename) { LIST *pos; Loading Loading
innobase/include/srv0srv.h +2 −4 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ extern ulint* srv_data_file_is_raw_partition; extern ibool srv_auto_extend_last_data_file; extern ulint srv_last_file_size_max; extern ulint srv_auto_extend_increment; extern ulong srv_auto_extend_increment; extern ibool srv_created_new_raw; Loading Loading @@ -112,11 +112,9 @@ extern ibool srv_use_checksums; extern ibool srv_set_thread_priorities; extern int srv_query_thread_priority; extern ulint srv_max_purge_lag; extern ulong srv_max_purge_lag; extern ibool srv_use_awe; extern ibool srv_use_adaptive_hash_indexes; extern ulint srv_max_purge_lag; /*-------------------------------------------*/ extern ulint srv_n_rows_inserted; Loading
innobase/row/row0sel.c +1 −1 Original line number Diff line number Diff line Loading @@ -2501,7 +2501,7 @@ row_sel_store_mysql_rec( } /* Handle UCS2 strings differently. */ if (templ->mbminlen == 2) { if (pad_char != '\0' && templ->mbminlen == 2) { /* There are two bytes per char, so the length has to be an even number. */ ut_a(!(templ->mysql_col_len & 1)); Loading
innobase/srv/srv0srv.c +3 −4 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ ulint srv_last_file_size_max = 0; /* if != 0, this tells the max size auto-extending may increase the last data file size */ ulint srv_auto_extend_increment = 8; /* If the last data file is ulong srv_auto_extend_increment = 8; /* If the last data file is auto-extended, we add this many pages to it at a time */ ulint* srv_data_file_is_raw_partition = NULL; Loading Loading @@ -323,9 +323,6 @@ disable adaptive hash indexes */ ibool srv_use_awe = FALSE; ibool srv_use_adaptive_hash_indexes = TRUE; /* Maximum allowable purge history length. <=0 means 'infinite'. */ ulint srv_max_purge_lag = 0; /*-------------------------------------------*/ ulint srv_n_spin_wait_rounds = 20; ulint srv_n_free_tickets_to_enter = 500; Loading Loading @@ -972,6 +969,8 @@ srv_general_init(void) /*======================= InnoDB Server FIFO queue =======================*/ /* Maximum allowable purge history length. <=0 means 'infinite'. */ ulong srv_max_purge_lag = 0; /************************************************************************* Puts an OS thread to wait if there are too many concurrent threads Loading
myisam/mi_create.c +15 −0 Original line number Diff line number Diff line Loading @@ -558,6 +558,21 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, create_flag=MY_DELETE_OLD; } /* If a MRG_MyISAM table is in use, the mapped MyISAM tables are open, but no entry is made in the table cache for them. A TRUNCATE command checks for the table in the cache only and could be fooled to believe, the table is not open. Pull the emergency brake in this situation. (Bug #8306) */ if (test_if_reopen(filename)) { my_printf_error(0, "MyISAM table '%s' is in use " "(most likely by a MERGE table). Try FLUSH TABLES.", MYF(0), name + dirname_length(name)); goto err; } if ((file= my_create_with_symlink(linkname_ptr, filename, 0, O_RDWR | O_TRUNC, Loading
myisam/mi_open.c +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ if (pos > end_pos) \ ** In MySQL the server will handle version issues. ******************************************************************************/ static MI_INFO *test_if_reopen(char *filename) MI_INFO *test_if_reopen(char *filename) { LIST *pos; Loading