MXS-591 Fix documentation and change comment parameter type

This commit is contained in:
Marko 2018-06-12 22:34:58 +03:00
parent 5324a1bdaa
commit f6e01b4434
2 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,7 @@ comments when they are received by the server.
[MyComment]
type=filter
module=comment
inject=Comment to be injected
inject="Comment to be injected"
[MyService]
type=service
@ -40,15 +40,13 @@ Variables must be written in all caps.
### Example 1 - Inject IP address of the connected client into statements
as comment.
You want to see the IP addresses of the clients with the server so you
define filter to comment the into the statements they send.
The following configuration adds the IP address of the client to the comment.
```
[IPComment]
type=filter
module=comment
inject=IP=$IP
inject="IP=$IP"
[MyService]
type=service

View File

@ -42,7 +42,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
NULL, /* Thread init. */
NULL, /* Thread finish. */
{
{ CN_INJECT, MXS_MODULE_PARAM_STRING, NULL, MXS_MODULE_OPT_REQUIRED },
{ CN_INJECT, MXS_MODULE_PARAM_QUOTEDSTRING, NULL, MXS_MODULE_OPT_REQUIRED },
{ MXS_END_MODULE_PARAMS }
}
};