Add query classifier plugin.
Basic infrastructure added for being able to load query classifier plugins using the same mechanism other plugins are loaded with.
This commit is contained in:
@ -198,6 +198,12 @@ load_module(const char *module, const char *type)
|
||||
MXS_ERROR("Module '%s' does not implement the filter API.", module);
|
||||
fatal = 1;
|
||||
}
|
||||
if (strcmp(type, MODULE_QUERY_CLASSIFIER) == 0
|
||||
&& mod_info->modapi != MODULE_API_QUERY_CLASSIFIER)
|
||||
{
|
||||
MXS_ERROR("Module '%s' does not implement the query classifier API.", module);
|
||||
fatal = 1;
|
||||
}
|
||||
if (fatal)
|
||||
{
|
||||
dlclose(dlhandle);
|
||||
|
Reference in New Issue
Block a user