MCPcopy Create free account
hub / github.com/MariaDB/server / partial_cleanup

Method partial_cleanup

sql/sql_select.cc:34044–34066  ·  view source on GitHub ↗

@brief Perform a partial cleanup for the JOIN_TAB structure @note this is used to cleanup resources for the re-execution of correlated subqueries. */

Source from the content-addressed store, hash-verified

34042 subqueries.
34043*/
34044void 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

Callers 1

cleanupMethod · 0.80

Calls 6

free_cacheFunction · 0.85
ha_index_or_rnd_endMethod · 0.80
is_createdMethod · 0.45
c_ptrMethod · 0.45
extraMethod · 0.45
print_errorMethod · 0.45

Tested by

no test coverage detected