1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

bug #1078. two innodb+delayed crashes

This commit is contained in:
serg@serg.mylan
2003-08-22 18:21:23 +02:00
parent 58bdc6f5e1
commit eb3912c05a
3 changed files with 30 additions and 0 deletions

View File

@ -172,7 +172,10 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
else
res= (table == 0);
else
{
lock_type=TL_WRITE;
res= open_and_lock_tables(thd, table_list);
}
}
else
res= open_and_lock_tables(thd, table_list);
@ -627,6 +630,7 @@ public:
thd.current_tablenr=0;
thd.version=refresh_version;
thd.command=COM_DELAYED_INSERT;
thd.lex.current_select= 0; /* for my_message_sql */
bzero((char*) &thd.net,sizeof(thd.net)); // Safety
thd.system_thread=1;