mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
cleanup: my_init_dynamic_array2 -> init_dynamic_array2
This commit is contained in:
parent
236556df3f
commit
534cbc1f2a
3 changed files with 8 additions and 10 deletions
|
@ -94,10 +94,9 @@ my_hash_init2(HASH *hash, uint growth_size, CHARSET_INFO *charset,
|
|||
hash->free=free_element;
|
||||
hash->flags=flags;
|
||||
hash->charset=charset;
|
||||
res= my_init_dynamic_array2(&hash->array,
|
||||
sizeof(HASH_LINK), NULL, size, growth_size,
|
||||
MYF((flags & HASH_THREAD_SPECIFIC ?
|
||||
MY_THREAD_SPECIFIC : 0)));
|
||||
res= init_dynamic_array2(&hash->array, sizeof(HASH_LINK), NULL, size,
|
||||
growth_size, MYF((flags & HASH_THREAD_SPECIFIC ?
|
||||
MY_THREAD_SPECIFIC : 0)));
|
||||
DBUG_RETURN(res);
|
||||
}
|
||||
|
||||
|
|
|
@ -188,8 +188,8 @@ void delegates_destroy()
|
|||
} s; \
|
||||
DYNAMIC_ARRAY *plugins= &s.plugins; \
|
||||
plugin_ref *plugins_buffer= s.plugins_buffer; \
|
||||
my_init_dynamic_array2(plugins, sizeof(plugin_ref), \
|
||||
plugins_buffer, 8, 8, MYF(0)); \
|
||||
init_dynamic_array2(plugins, sizeof(plugin_ref), \
|
||||
plugins_buffer, 8, 8, MYF(0)); \
|
||||
read_lock(); \
|
||||
Observer_info_iterator iter= observer_info_iter(); \
|
||||
Observer_info *info= iter++; \
|
||||
|
|
|
@ -2569,10 +2569,9 @@ LEX::LEX()
|
|||
is_lex_started(0), limit_rows_examined_cnt(ULONGLONG_MAX)
|
||||
{
|
||||
|
||||
my_init_dynamic_array2(&plugins, sizeof(plugin_ref),
|
||||
plugins_static_buffer,
|
||||
INITIAL_LEX_PLUGIN_LIST_SIZE,
|
||||
INITIAL_LEX_PLUGIN_LIST_SIZE, 0);
|
||||
init_dynamic_array2(&plugins, sizeof(plugin_ref), plugins_static_buffer,
|
||||
INITIAL_LEX_PLUGIN_LIST_SIZE,
|
||||
INITIAL_LEX_PLUGIN_LIST_SIZE, 0);
|
||||
reset_query_tables_list(TRUE);
|
||||
mi.init();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue