1
0
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:
unknown
2004-06-24 19:46:50 +02:00
parent c6840712f5
commit ff73678967
5 changed files with 59 additions and 17 deletions

View File

@ -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));
}
}