MAX-328, Add session identifier to trace log entries. Session id is given to session in session_alloc and stored to thread's local storage variable when thread picks a new event from epoll_wait.
This commit is contained in:
@ -110,6 +110,7 @@ typedef struct session {
|
||||
#endif
|
||||
SPINLOCK ses_lock;
|
||||
session_state_t state; /**< Current descriptor state */
|
||||
size_t ses_id; /**< unique session identifier */
|
||||
struct dcb *client; /**< The client connection */
|
||||
void *data; /**< The session data */
|
||||
void *router_session;/**< The router instance data */
|
||||
|
||||
Reference in New Issue
Block a user