Add readconnroute runtime reconfiguration

Readconnroute can now be configured at runtime. The changes to
configuration processing allow the removal of router_options now that the
parameters are parsed inside the router.
This commit is contained in:
Markus Mäkelä
2018-07-09 09:18:40 +03:00
parent 5604023b26
commit c4be3f75c0
2 changed files with 103 additions and 84 deletions

View File

@ -43,6 +43,7 @@ struct ROUTER_CLIENT_SES: MXS_ROUTER_SESSION
SERVER_REF *backend; /*< Backend used by the client session */
DCB *backend_dcb; /*< DCB Connection to the backend */
DCB *client_dcb; /**< Client DCB */
uint32_t bitmask; /*< Bitmask to apply to server->status */
uint32_t bitvalue; /*< Session specific required value of server->status */
};
@ -62,7 +63,6 @@ struct ROUTER_INSTANCE: public MXS_ROUTER
{
SERVICE *service; /*< Pointer to the service using this router */
SPINLOCK lock; /*< Spinlock for the instance data */
uint32_t bitmask; /*< Bitmask to apply to server->status */
uint32_t bitvalue; /*< Required value of server->status */
uint64_t bitmask_and_bitvalue; /*< Lower 32-bits for bitmask and upper for bitvalue */
ROUTER_STATS stats; /*< Statistics for this router */
};