Reset sessionid upon exit.
Since the sessionid is now unconditionally set, it also needs to be unconditionally reset.
This commit is contained in:
@ -629,10 +629,7 @@ dcb_process_victim_queue(DCB *listofdcb)
|
|||||||
dcb = nextdcb;
|
dcb = nextdcb;
|
||||||
}
|
}
|
||||||
/** Reset threads session data */
|
/** Reset threads session data */
|
||||||
if (LOG_IS_ENABLED(LOGFILE_TRACE))
|
tls_log_info.li_sesid = 0;
|
||||||
{
|
|
||||||
tls_log_info.li_sesid = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1075,10 +1075,7 @@ unsigned long qtime;
|
|||||||
}
|
}
|
||||||
dcb->evq.processing = 0;
|
dcb->evq.processing = 0;
|
||||||
/** Reset session id from thread's local storage */
|
/** Reset session id from thread's local storage */
|
||||||
if (LOG_IS_ENABLED(LOGFILE_TRACE))
|
tls_log_info.li_sesid = 0;
|
||||||
{
|
|
||||||
tls_log_info.li_sesid = 0;
|
|
||||||
}
|
|
||||||
spinlock_release(&pollqlock);
|
spinlock_release(&pollqlock);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user