summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <aelkin/elkin@dsl-hkigw8-feb1fb00-100.dhcp.inet.fi>2006-07-10 13:11:29 +0300
committerunknown <aelkin/elkin@dsl-hkigw8-feb1fb00-100.dhcp.inet.fi>2006-07-10 13:11:29 +0300
commitbd0f363dcb2d4395bc365c85ae37f2132b5ed96b (patch)
treefeb6bf6667331b8b4e46af976447ad32897fab93 /sql/sql_base.cc
parent394099369b711434900a4cdad65ce2e4533f3e89 (diff)
parent868fee4dde4d73c2cd999f8a2ffc915f040e9e0b (diff)
downloadmariadb-git-bd0f363dcb2d4395bc365c85ae37f2132b5ed96b.tar.gz
Merge dsl-hkigw8-feb1fb00-100.dhcp.inet.fi:/usr_rh9/home/elkin.rh9/MySQL/TEAM/BARE/4.1
into dsl-hkigw8-feb1fb00-100.dhcp.inet.fi:/usr_rh9/home/elkin.rh9/MySQL/TEAM/FIXES/5.0/20919_temp_nlog sql/sql_base.cc: Manual merge
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index ba9fa6f6c80..c6f491cdb61 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -624,8 +624,10 @@ void close_temporary_tables(THD *thd)
if (!mysql_bin_log.is_open())
{
- for (table= thd->temporary_tables; table; table= table->next)
+ TABLE *next;
+ for (table= thd->temporary_tables; table; table= next)
{
+ next= table->next;
close_temporary(table, 1);
}
thd->temporary_tables= 0;
@@ -648,7 +650,6 @@ void close_temporary_tables(THD *thd)
insertion sort of temp tables by pseudo_thread_id to build ordered list
of sublists of equal pseudo_thread_id
*/
-
for (prev_table= thd->temporary_tables, table= prev_table->next;
table;
prev_table= table, table= table->next)