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

Function add_plugin_options

sql/sql_plugin.cc:4412–4432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4410
4411
4412void add_plugin_options(DYNAMIC_ARRAY *options, MEM_ROOT *mem_root)
4413{
4414 struct st_plugin_int *p;
4415 my_option *opt;
4416
4417 if (!initialized)
4418 return;
4419
4420 for (size_t idx= 0; idx < plugin_array.elements; idx++)
4421 {
4422 p= *dynamic_element(&plugin_array, idx, struct st_plugin_int **);
4423
4424 if (!(opt= construct_help_options(mem_root, p)))
4425 continue;
4426
4427 /* Only options with a non-NULL comment are displayed in help text */
4428 for (;opt->name; opt++)
4429 if (opt->comment)
4430 insert_dynamic(options, (uchar*) opt);
4431 }
4432}
4433
4434
4435/**

Callers 1

print_helpFunction · 0.85

Calls 2

construct_help_optionsFunction · 0.85
insert_dynamicFunction · 0.85

Tested by

no test coverage detected