diff options
author | unknown <monty@donna.mysql.com> | 2000-10-23 15:35:42 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2000-10-23 15:35:42 +0300 |
commit | 76edea0d7354133743b3608213653c5a7f3c94ce (patch) | |
tree | 20b25b09438bf3aad77ad7810faab9651daf310f /sql/sql_insert.cc | |
parent | 3d10e826ffc1423ced9a2d845a8e617b0d569f58 (diff) | |
download | mariadb-git-76edea0d7354133743b3608213653c5a7f3c94ce.tar.gz |
Fix of automatic repair
Docs/manual.texi:
Update for 3.23.27
configure.in:
Fixed syntax error
include/m_string.h:
bmove() was wrongly defined (old code was probably never executed)
myisam/mi_check.c:
Fix for automatic repair
myisam/myisamchk.c:
Fix for automatic repair
sql/ha_myisam.cc:
Fix for automatic repair
sql/handler.cc:
Fix for automatic repair
sql/mysqlbinlog.cc:
Indentation
sql/sql_insert.cc:
Move incrementation of thread_count to make things safer
sql/sql_parse.cc:
Added a new state for bug tracking
sql/sql_select.cc:
Increment created_tmp_disk_tables for each internal temporary
MyISAM table. Added path to some printf statements.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index b32e5393404..9fc47cd4dfc 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -567,6 +567,9 @@ static TABLE *delayed_get_table(THD *thd,TABLE_LIST *table_list) pthread_mutex_unlock(&LOCK_delayed_create); DBUG_RETURN(0); } + pthread_mutex_lock(&LOCK_thread_count); + thread_count++; + pthread_mutex_unlock(&LOCK_thread_count); if (!(tmp->thd.db=my_strdup(table_list->db,MYF(MY_WME))) || !(tmp->thd.query=my_strdup(table_list->real_name,MYF(MY_FAE)))) { @@ -578,9 +581,6 @@ static TABLE *delayed_get_table(THD *thd,TABLE_LIST *table_list) } tmp->table_list=table_list; // Needed to open table tmp->lock(); - pthread_mutex_lock(&LOCK_thread_count); - thread_count++; - pthread_mutex_unlock(&LOCK_thread_count); pthread_mutex_lock(&tmp->mutex); if ((error=pthread_create(&tmp->thd.real_id,&connection_attrib, handle_delayed_insert,(void*) tmp))) |