Change session id to 64bit
The server internal session id may be larger than 4 bytes (MariaDB uses 8) but only 4 are sent in the handshake. The full value can be queried from the server, but this query is not supported by MaxScale yet. In any case, both the protocol and MXS_SESSION now have 64 bit counters. Only the low 32 bits are sent in the handshake, similar to server.
This commit is contained in:
@ -163,7 +163,7 @@ static uint32_t dcb_process_poll_events(DCB *dcb, int thread_id, uint32_t ev);
|
||||
static void dcb_process_fake_events(DCB *dcb, int thread_id);
|
||||
static bool dcb_session_check(DCB *dcb, const char *);
|
||||
|
||||
uint32_t dcb_get_session_id(DCB *dcb)
|
||||
uint64_t dcb_get_session_id(DCB *dcb)
|
||||
{
|
||||
return (dcb && dcb->session) ? dcb->session->ses_id : 0;
|
||||
}
|
||||
@ -1673,7 +1673,7 @@ dprintDCB(DCB *pdcb, DCB *dcb)
|
||||
|
||||
if (dcb->session && dcb->session->state != SESSION_STATE_DUMMY)
|
||||
{
|
||||
dcb_printf(pdcb, "\tOwning Session: %" PRIu32 "\n", dcb->session->ses_id);
|
||||
dcb_printf(pdcb, "\tOwning Session: %" PRIu64 "\n", dcb->session->ses_id);
|
||||
}
|
||||
|
||||
if (dcb->writeq)
|
||||
|
||||
Reference in New Issue
Block a user