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. */
| 205 | I_S.GLOBAL_VARIABLES and I_S.GLOBAL_STATUS. |
| 206 | */ |
| 207 | int 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 |
no test coverage detected