diff options
author | unknown <serg@serg.mylan> | 2004-06-23 21:26:34 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-06-23 21:26:34 +0200 |
commit | ebf9c723f047bb1c0976dd7f502bbc699fef38df (patch) | |
tree | 360bea89c74895a221f2da2a3209b6aa631b7aab /sql/sql_select.cc | |
parent | b0993317ecb22a07b4c8eeaac32e4c0477dfe6f4 (diff) | |
download | mariadb-git-ebf9c723f047bb1c0976dd7f502bbc699fef38df.tar.gz |
followup to handler cleanup
mysql-test/r/bdb.result:
bug#4000
mysql-test/t/bdb.test:
bug#4000
sql/sql_select.cc:
cleanup
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index fa0f8464404..7d0c56aed2b 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -3872,12 +3872,8 @@ JOIN::join_free(bool full) { for (tab= join_tab, end= tab+tables; tab != end; tab++) { - if (tab->table) - { - /* Don't free index if we are using read_record */ - if (tab->table->file->inited==handler::RND) + if (tab->table && tab->table->file->inited == handler::RND) tab->table->file->ha_rnd_end(); - } } } } |