mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL 1034 update
(pre-push cleanups removing debugging code) sql/event.cc: - comment - fix 80 cols - fix a crash when dropping a running event (after it has finished its work because the memory got freed in remove_from_cache but the event was still running) sql/event.h: - add new method sql/event_executor.cc: - remove printf-s - fix 80cols - fix message
This commit is contained in:
13
sql/event.h
13
sql/event.h
@ -113,6 +113,7 @@ public:
|
||||
free_sp();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
init();
|
||||
|
||||
@ -164,6 +165,18 @@ public:
|
||||
int
|
||||
compile(THD *thd, MEM_ROOT *mem_root= NULL);
|
||||
|
||||
my_bool
|
||||
is_running()
|
||||
{
|
||||
my_bool ret;
|
||||
|
||||
VOID(pthread_mutex_lock(&this->LOCK_running));
|
||||
ret= running;
|
||||
VOID(pthread_mutex_unlock(&this->LOCK_running));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void free_sp()
|
||||
{
|
||||
delete sphead;
|
||||
|
Reference in New Issue
Block a user