summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <aelkin/elkin@dsl-hkigw8-feb1fb00-100.dhcp.inet.fi>2006-07-10 00:26:26 +0300
committerunknown <aelkin/elkin@dsl-hkigw8-feb1fb00-100.dhcp.inet.fi>2006-07-10 00:26:26 +0300
commit868fee4dde4d73c2cd999f8a2ffc915f040e9e0b (patch)
tree6aa2ccfafc94f16af833a9e7eb667c9d3a0ce641 /mysys
parent5d506d6b6255589dd4c28958ee03be59c690f4cf (diff)
downloadmariadb-git-868fee4dde4d73c2cd999f8a2ffc915f040e9e0b.tar.gz
BUG#20919 temp tables closing fails when binlog is off
closing temp tables through end_thread had a flaw in binlog-off branch of close_temporary_tables where next table to close was reset via table->next for (table= thd->temporary_tables; table; table= table->next) which was wrong since the current table instance got destoyed at close_temporary(table, 1); The fix adapts binlog-on branch method to engage the loop's internal 'next' variable which holds table->next prior table's destoying. sql/sql_base.cc: no-binlog branch is fixed: scanning across temporary_tables must be careful to save next table since the current is being destroyed inside of close_temporary. binlog-is-open case is ok.
Diffstat (limited to 'mysys')
0 files changed, 0 insertions, 0 deletions