• aelkin/elkin@dsl-hkigw8-feb1fb00-100.dhcp.inet.fi's avatar
    BUG#20919 temp tables closing fails when binlog is off · fadbdf27
    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.
    fadbdf27
sql_base.cc 86.3 KB