mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bug#4089 - JOIN::join_free calling mysql_unlock w/o index_end() before
sql/ha_myisam.h: cleanup mysql-test/r/bdb.result: bug#4089 mysql-test/t/bdb.test: bug#4089 sql/opt_range.cc: be sloppy sql/sql_select.cc: JOIN::join_free - pass it down the tree (of selects) call mysql_unlock_tables only in top-level select
This commit is contained in:
@ -413,7 +413,8 @@ QUICK_SELECT::~QUICK_SELECT()
|
||||
{
|
||||
if (!dont_free)
|
||||
{
|
||||
file->ha_index_end();
|
||||
if (file->inited)
|
||||
file->ha_index_end();
|
||||
free_root(&alloc,MYF(0));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user