MXS-1929: Take SFilterDef into use

The service now uses a std::vector<SFilterDef> to store the filters it
uses. Most internal parts deal with the SFilterDef but debugcmd.cc still
moves raw pointers around (needs to be changed).
This commit is contained in:
Markus Mäkelä
2018-08-01 19:20:01 +03:00
parent 00ab890b19
commit 4d3dbb2040
12 changed files with 96 additions and 144 deletions

View File

@ -1850,9 +1850,13 @@ convert_arg(char *arg, int arg_type)
break;
case ARG_TYPE_FILTER:
{
fix_object_name(arg);
rval = (unsigned long)filter_def_find(arg);
auto f = filter_find(arg);
// This will cause problems in the long run
rval = (unsigned long) (f ? f.get() : NULL);
break;
}
case ARG_TYPE_NUMERIC: