Renamed struct CLIENT_SESSION to ROUTER_CLIENT_SESSION as it is router related thing. Client session refers more to SESSION.
'dcb' to 'backend_dcb' because it is more accurate. 'client_session' to 'router_client_session'. Renamed struct instance and type INSTANCE to router_instance and to ROUTER_INSTANCE.:
This commit is contained in:
@ -44,12 +44,12 @@ typedef struct backend {
|
|||||||
/**
|
/**
|
||||||
* The client session structure used within this router.
|
* The client session structure used within this router.
|
||||||
*/
|
*/
|
||||||
typedef struct client_session {
|
typedef struct router_client_session {
|
||||||
BACKEND *backend; /**< Backend used by the client session */
|
BACKEND *backend; /**< Backend used by the client session */
|
||||||
DCB *dcb; /**< DCB Connection to the backend */
|
DCB *backend_dcb; /**< DCB Connection to the backend */
|
||||||
struct client_session
|
struct router_client_session
|
||||||
*next;
|
*next;
|
||||||
} CLIENT_SESSION;
|
} ROUTER_CLIENT_SES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The statistics for this router instance
|
* The statistics for this router instance
|
||||||
@ -63,14 +63,15 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
* The per instance data for the router.
|
* The per instance data for the router.
|
||||||
*/
|
*/
|
||||||
typedef struct instance {
|
typedef struct router_instance {
|
||||||
SERVICE *service; /**< Pointer to the service using this router */
|
SERVICE *service; /**< Pointer to the service using this router */
|
||||||
CLIENT_SESSION *connections; /**< Link list of all the client connections */
|
ROUTER_CLIENT_SES *connections; /**< Link list of all the client connections */
|
||||||
SPINLOCK lock; /**< Spinlock for the instance data */
|
SPINLOCK lock; /**< Spinlock for the instance data */
|
||||||
BACKEND **servers; /**< The set of backend servers for this instance */
|
BACKEND **servers; /**< The set of backend servers for this router*/
|
||||||
unsigned int bitmask; /**< Bitmask to apply to server->status */
|
unsigned int bitmask; /**< Bitmask to apply to server->status */
|
||||||
unsigned int bitvalue; /**< Required value of server->status */
|
unsigned int bitvalue; /**< Required value of server->status */
|
||||||
ROUTER_STATS stats; /**< Statistics for this router */
|
ROUTER_STATS stats; /**< Statistics for this router */
|
||||||
struct instance *next;
|
struct router_instance
|
||||||
} INSTANCE;
|
*next;
|
||||||
|
} ROUTER_INSTANCE;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user