| 1849 | |
| 1850 | |
| 1851 | static bool register_builtin(struct st_maria_plugin *plugin, |
| 1852 | struct st_plugin_int *tmp, |
| 1853 | struct st_plugin_int **ptr) |
| 1854 | { |
| 1855 | DBUG_ENTER("register_builtin"); |
| 1856 | tmp->ref_count= 0; |
| 1857 | tmp->plugin_dl= 0; |
| 1858 | |
| 1859 | if (insert_dynamic(&plugin_array, (uchar*)&tmp)) |
| 1860 | DBUG_RETURN(1); |
| 1861 | |
| 1862 | *ptr= *dynamic_element(&plugin_array, plugin_array.elements - 1, |
| 1863 | struct st_plugin_int **)= |
| 1864 | (struct st_plugin_int *) memdup_root(&plugin_mem_root, (uchar*)tmp, |
| 1865 | sizeof(struct st_plugin_int)); |
| 1866 | |
| 1867 | if (my_hash_insert(&plugin_hash[plugin->type],(uchar*) *ptr)) |
| 1868 | DBUG_RETURN(1); |
| 1869 | |
| 1870 | DBUG_RETURN(0); |
| 1871 | } |
| 1872 | |
| 1873 | |
| 1874 | static bool plugin_table_is_valid(TABLE *table) |
no test coverage detected