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:
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user