Remove support for session specific log priorities
No need to maintain information in thread local storage, which just added complexity and also incurred a slight performance penalty.
This commit is contained in:
@ -167,32 +167,6 @@ size_t dcb_get_session_id(
|
||||
return (dcb && dcb->session) ? dcb->session->ses_id : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read log info from session through DCB and store values to memory locations
|
||||
* passed as parameters.
|
||||
*
|
||||
* @param dcb DCB
|
||||
* @param sesid location where session id is to be copied
|
||||
* @param enabled_log_prioritiess bit field indicating which log types are enabled for the
|
||||
* session
|
||||
*
|
||||
*@return true if call arguments included memory addresses, false if any of the
|
||||
* parameters was NULL.
|
||||
*/
|
||||
bool dcb_get_ses_log_info(
|
||||
DCB *dcb,
|
||||
size_t *sesid,
|
||||
int *enabled_log_priorities)
|
||||
{
|
||||
if (sesid && enabled_log_priorities && dcb && dcb->session)
|
||||
{
|
||||
*sesid = dcb->session->ses_id;
|
||||
*enabled_log_priorities = dcb->session->enabled_log_priorities;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Initialize a DCB
|
||||
*
|
||||
@ -586,10 +560,6 @@ dcb_process_victim_queue(int threadid)
|
||||
}
|
||||
}
|
||||
|
||||
dcb_get_ses_log_info(dcb,
|
||||
&mxs_log_tls.li_sesid,
|
||||
&mxs_log_tls.li_enabled_priorities);
|
||||
|
||||
/** Move to the next DCB before freeing the previous one */
|
||||
dcblist = dcblist->memdata.next;
|
||||
|
||||
@ -600,8 +570,6 @@ dcb_process_victim_queue(int threadid)
|
||||
dcb_remove_from_list(dcb);
|
||||
dcb_final_free(dcb);
|
||||
}
|
||||
/** Reset threads session data */
|
||||
mxs_log_tls.li_sesid = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user