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

Function fill_feedback

plugin/feedback/feedback.cc:207–230  ·  view source on GitHub ↗

Fill our I_S table with data This function works by invoking fill_variables() and fill_status() of the corresponding I_S tables - to have their data UNION-ed in the same target table. After that it invokes our own fill_* functions from the utils.cc - to get the data that aren't available in the I_S.GLOBAL_VARIABLES and I_S.GLOBAL_STATUS. */

Source from the content-addressed store, hash-verified

205 I_S.GLOBAL_VARIABLES and I_S.GLOBAL_STATUS.
206*/
207int fill_feedback(THD *thd, TABLE_LIST *tables, COND *unused)
208{
209 int res;
210 COND *cond;
211
212 tables->schema_table= schema_tables + SCH_GLOBAL_VARIABLES;
213 cond= make_cond(thd, tables, vars_filter);
214 res= (cond == OOM) ? 1 : fill_variables(thd, tables, cond);
215
216 tables->schema_table= schema_tables + SCH_GLOBAL_STATUS;
217 if (!res)
218 {
219 cond= make_cond(thd, tables, status_filter);
220 res= (cond == OOM) ? 1 : fill_status(thd, tables, cond);
221 }
222
223 tables->schema_table= i_s_feedback;
224 res= res || fill_plugin_version(thd, tables)
225 || fill_misc_data(thd, tables)
226 || fill_linux_info(thd, tables)
227 || fill_collation_statistics(thd, tables);
228
229 return res;
230}
231
232/**
233 plugin initialization function

Callers 1

send_reportFunction · 0.85

Calls 7

make_condFunction · 0.85
fill_variablesFunction · 0.85
fill_statusFunction · 0.85
fill_plugin_versionFunction · 0.85
fill_misc_dataFunction · 0.85
fill_linux_infoFunction · 0.85

Tested by

no test coverage detected