Take static module capabilities into use
The static module capabilities are now used to query the capabilities of filters and routers. The new RCAP_TYPE_NOAUTH capability is also taken into use. These changes removes the need for the `is_internal_service` function.
This commit is contained in:
@ -82,7 +82,7 @@ void HintRouter::diagnostics(DCB* pOut)
|
||||
uint64_t HintRouter::getCapabilities()
|
||||
{
|
||||
HR_ENTRY();
|
||||
return RCAP_TYPE_STMT_OUTPUT;
|
||||
return RCAP_TYPE_NONE;
|
||||
}
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
||||
MXS_ROUTER_VERSION, /* Implemented module API version */
|
||||
"A hint router", /* Description */
|
||||
"V1.0.0", /* Module version */
|
||||
MXS_NO_MODULE_CAPABILITIES,
|
||||
RCAP_TYPE_STMT_OUTPUT,
|
||||
&HintRouter::s_object,
|
||||
NULL, /* Process init, can be null */
|
||||
NULL, /* Process finish, can be null */
|
||||
|
Reference in New Issue
Block a user