Reset sessionid upon exit.

Since the sessionid is now unconditionally set, it also needs to
be unconditionally reset.
This commit is contained in:
Johan Wikman
2015-11-23 18:25:48 +02:00
parent c6982b863a
commit 910ddb99fd
2 changed files with 2 additions and 8 deletions

View File

@ -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;
}
} }
/** /**

View File

@ -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;