Commit 534cbc1f authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: my_init_dynamic_array2 -> init_dynamic_array2

parent 236556df
...@@ -94,10 +94,9 @@ my_hash_init2(HASH *hash, uint growth_size, CHARSET_INFO *charset, ...@@ -94,10 +94,9 @@ my_hash_init2(HASH *hash, uint growth_size, CHARSET_INFO *charset,
hash->free=free_element; hash->free=free_element;
hash->flags=flags; hash->flags=flags;
hash->charset=charset; hash->charset=charset;
res= my_init_dynamic_array2(&hash->array, res= init_dynamic_array2(&hash->array, sizeof(HASH_LINK), NULL, size,
sizeof(HASH_LINK), NULL, size, growth_size, growth_size, MYF((flags & HASH_THREAD_SPECIFIC ?
MYF((flags & HASH_THREAD_SPECIFIC ? MY_THREAD_SPECIFIC : 0)));
MY_THREAD_SPECIFIC : 0)));
DBUG_RETURN(res); DBUG_RETURN(res);
} }
......
...@@ -188,8 +188,8 @@ void delegates_destroy() ...@@ -188,8 +188,8 @@ void delegates_destroy()
} s; \ } s; \
DYNAMIC_ARRAY *plugins= &s.plugins; \ DYNAMIC_ARRAY *plugins= &s.plugins; \
plugin_ref *plugins_buffer= s.plugins_buffer; \ plugin_ref *plugins_buffer= s.plugins_buffer; \
my_init_dynamic_array2(plugins, sizeof(plugin_ref), \ init_dynamic_array2(plugins, sizeof(plugin_ref), \
plugins_buffer, 8, 8, MYF(0)); \ plugins_buffer, 8, 8, MYF(0)); \
read_lock(); \ read_lock(); \
Observer_info_iterator iter= observer_info_iter(); \ Observer_info_iterator iter= observer_info_iter(); \
Observer_info *info= iter++; \ Observer_info *info= iter++; \
......
...@@ -2569,10 +2569,9 @@ LEX::LEX() ...@@ -2569,10 +2569,9 @@ LEX::LEX()
is_lex_started(0), limit_rows_examined_cnt(ULONGLONG_MAX) is_lex_started(0), limit_rows_examined_cnt(ULONGLONG_MAX)
{ {
my_init_dynamic_array2(&plugins, sizeof(plugin_ref), init_dynamic_array2(&plugins, sizeof(plugin_ref), plugins_static_buffer,
plugins_static_buffer, INITIAL_LEX_PLUGIN_LIST_SIZE,
INITIAL_LEX_PLUGIN_LIST_SIZE, INITIAL_LEX_PLUGIN_LIST_SIZE, 0);
INITIAL_LEX_PLUGIN_LIST_SIZE, 0);
reset_query_tables_list(TRUE); reset_query_tables_list(TRUE);
mi.init(); mi.init();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment