@brief Perform a partial cleanup for the JOIN_TAB structure @note this is used to cleanup resources for the re-execution of correlated subqueries. */
| 34042 | subqueries. |
| 34043 | */ |
| 34044 | void JOIN_TAB::partial_cleanup() |
| 34045 | { |
| 34046 | if (!table) |
| 34047 | return; |
| 34048 | |
| 34049 | if (table->is_created()) |
| 34050 | { |
| 34051 | table->file->ha_index_or_rnd_end(); |
| 34052 | DBUG_PRINT("info", ("close index: %s.%s alias: %s", |
| 34053 | table->s->db.str, |
| 34054 | table->s->table_name.str, |
| 34055 | table->alias.c_ptr())); |
| 34056 | if (aggr) |
| 34057 | { |
| 34058 | int tmp= 0; |
| 34059 | if ((tmp= table->file->extra(HA_EXTRA_NO_CACHE))) |
| 34060 | table->file->print_error(tmp, MYF(0)); |
| 34061 | } |
| 34062 | } |
| 34063 | delete filesort_result; |
| 34064 | filesort_result= NULL; |
| 34065 | free_cache(&read_record); |
| 34066 | } |
| 34067 | |
| 34068 | /** |
| 34069 | @brief |
no test coverage detected