Loading innobase/include/os0sync.h +1 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ os_fast_mutex_trylock( #endif /************************************************************** Releases ownership of a fast mutex. */ UNIV_INLINE void os_fast_mutex_unlock( /*=================*/ Loading innobase/include/os0sync.ic +0 −14 Original line number Diff line number Diff line Loading @@ -40,17 +40,3 @@ os_fast_mutex_trylock( } #endif /************************************************************** Releases ownership of a fast mutex. */ UNIV_INLINE void os_fast_mutex_unlock( /*=================*/ os_fast_mutex_t* fast_mutex) /* in: mutex to release */ { #ifdef __WIN__ LeaveCriticalSection(fast_mutex); #else pthread_mutex_unlock(fast_mutex); #endif } innobase/include/srv0srv.h +3 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,9 @@ extern char* srv_unix_file_flush_method_str; extern ulint srv_unix_file_flush_method; extern ulint srv_force_recovery; extern ulint srv_thread_concurrency; extern lint srv_conc_n_threads; extern ibool srv_fast_shutdown; extern ibool srv_use_doublewrite_buf; Loading innobase/os/os0sync.c +15 −0 Original line number Diff line number Diff line Loading @@ -454,6 +454,21 @@ os_fast_mutex_lock( #endif } /************************************************************** Releases ownership of a fast mutex. */ void os_fast_mutex_unlock( /*=================*/ os_fast_mutex_t* fast_mutex) /* in: mutex to release */ { #ifdef __WIN__ LeaveCriticalSection(fast_mutex); #else pthread_mutex_unlock(fast_mutex); #endif } /************************************************************** Frees a mutex object. */ Loading innobase/row/row0mysql.c +34 −0 Original line number Diff line number Diff line Loading @@ -946,11 +946,27 @@ row_create_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); trx_commit_for_mysql(trx); return(DB_ERROR); } trx->op_info = (char *) "creating table"; if (0 == ut_strcmp(table->name, "mysql/host") || 0 == ut_strcmp(table->name, "mysql/user") || 0 == ut_strcmp(table->name, "mysql/db")) { fprintf(stderr, "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" "InnoDB: MySQL system tables must be of the MyISAM type!\n", table->name); trx_commit_for_mysql(trx); return(DB_ERROR); } trx_start_if_not_started(trx); namelen = ut_strlen(table->name); Loading Loading @@ -1428,6 +1444,8 @@ row_drop_table_for_mysql( que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = (char *) ""; return((int) err); Loading Loading @@ -1513,6 +1531,20 @@ row_rename_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); trx_commit_for_mysql(trx); return(DB_ERROR); } if (0 == ut_strcmp(new_name, "mysql/host") || 0 == ut_strcmp(new_name, "mysql/user") || 0 == ut_strcmp(new_name, "mysql/db")) { fprintf(stderr, "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" "InnoDB: MySQL system tables must be of the MyISAM type!\n", new_name); trx_commit_for_mysql(trx); return(DB_ERROR); } Loading Loading @@ -1596,6 +1628,8 @@ row_rename_table_for_mysql( que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = (char *) ""; return((int) err); Loading Loading
innobase/include/os0sync.h +1 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ os_fast_mutex_trylock( #endif /************************************************************** Releases ownership of a fast mutex. */ UNIV_INLINE void os_fast_mutex_unlock( /*=================*/ Loading
innobase/include/os0sync.ic +0 −14 Original line number Diff line number Diff line Loading @@ -40,17 +40,3 @@ os_fast_mutex_trylock( } #endif /************************************************************** Releases ownership of a fast mutex. */ UNIV_INLINE void os_fast_mutex_unlock( /*=================*/ os_fast_mutex_t* fast_mutex) /* in: mutex to release */ { #ifdef __WIN__ LeaveCriticalSection(fast_mutex); #else pthread_mutex_unlock(fast_mutex); #endif }
innobase/include/srv0srv.h +3 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,9 @@ extern char* srv_unix_file_flush_method_str; extern ulint srv_unix_file_flush_method; extern ulint srv_force_recovery; extern ulint srv_thread_concurrency; extern lint srv_conc_n_threads; extern ibool srv_fast_shutdown; extern ibool srv_use_doublewrite_buf; Loading
innobase/os/os0sync.c +15 −0 Original line number Diff line number Diff line Loading @@ -454,6 +454,21 @@ os_fast_mutex_lock( #endif } /************************************************************** Releases ownership of a fast mutex. */ void os_fast_mutex_unlock( /*=================*/ os_fast_mutex_t* fast_mutex) /* in: mutex to release */ { #ifdef __WIN__ LeaveCriticalSection(fast_mutex); #else pthread_mutex_unlock(fast_mutex); #endif } /************************************************************** Frees a mutex object. */ Loading
innobase/row/row0mysql.c +34 −0 Original line number Diff line number Diff line Loading @@ -946,11 +946,27 @@ row_create_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); trx_commit_for_mysql(trx); return(DB_ERROR); } trx->op_info = (char *) "creating table"; if (0 == ut_strcmp(table->name, "mysql/host") || 0 == ut_strcmp(table->name, "mysql/user") || 0 == ut_strcmp(table->name, "mysql/db")) { fprintf(stderr, "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" "InnoDB: MySQL system tables must be of the MyISAM type!\n", table->name); trx_commit_for_mysql(trx); return(DB_ERROR); } trx_start_if_not_started(trx); namelen = ut_strlen(table->name); Loading Loading @@ -1428,6 +1444,8 @@ row_drop_table_for_mysql( que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = (char *) ""; return((int) err); Loading Loading @@ -1513,6 +1531,20 @@ row_rename_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); trx_commit_for_mysql(trx); return(DB_ERROR); } if (0 == ut_strcmp(new_name, "mysql/host") || 0 == ut_strcmp(new_name, "mysql/user") || 0 == ut_strcmp(new_name, "mysql/db")) { fprintf(stderr, "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" "InnoDB: MySQL system tables must be of the MyISAM type!\n", new_name); trx_commit_for_mysql(trx); return(DB_ERROR); } Loading Loading @@ -1596,6 +1628,8 @@ row_rename_table_for_mysql( que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = (char *) ""; return((int) err); Loading