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

Method close

sql/sql_cursor.cc:326–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326void Materialized_cursor::close()
327{
328 /* Free item_list items */
329 free_items();
330 if (is_rnd_inited)
331 (void) table->file->ha_rnd_end();
332 /*
333 We need to grab table->mem_root to prevent free_tmp_table from freeing:
334 the cursor object was allocated in this memory.
335 */
336 main_mem_root= table->mem_root;
337 mem_root= &main_mem_root;
338 clear_alloc_root(&table->mem_root);
339 free_tmp_table(table->in_use, table);
340 table= 0;
341}
342
343
344Materialized_cursor::~Materialized_cursor()

Callers

nothing calls this directly

Calls 3

free_itemsFunction · 0.85
free_tmp_tableFunction · 0.85
ha_rnd_endMethod · 0.45

Tested by

no test coverage detected