MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / delete_dynamic

Function delete_dynamic

mysys/array.c:298–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296*/
297
298void delete_dynamic(DYNAMIC_ARRAY *array)
299{
300 /*
301 Just mark as empty if we are using a static buffer
302 */
303 if (array->buffer == (uchar *)(array + 1))
304 array->elements= 0;
305 else
306 if (array->buffer)
307 {
308 my_free(array->buffer);
309 array->buffer=0;
310 array->elements=array->max_element=0;
311 }
312}
313
314/*
315 Delete element by given index

Callers 13

mysql_close_free_optionsFunction · 0.85
ignore_db_dirs_freeFunction · 0.85
cleanup_after_queryMethod · 0.85
~Dynamic_arrayMethod · 0.85
my_direndFunction · 0.85
wt_resource_destroyFunction · 0.85
wt_thd_destroyFunction · 0.85
my_hash_freeFunction · 0.85
init_tmpdirFunction · 0.85
free_tmpdirFunction · 0.85
my_load_defaultsFunction · 0.85
clean_upFunction · 0.85

Calls 1

my_freeFunction · 0.85

Tested by

no test coverage detected