mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
WL#1034 update
cleanup before throwin away DYNAMIC_ARRAY for event storage, once reallocated I get dangling pointers so that's not good. solution will be found however ;) sql/event.cc: - remove unneeded variables - remove commented out code - remove non-cs compliant comment - fix a bug when removing from memory cache - better close the tables than relying on sql_parse.cc::do_command() to do that sql/event_executor.cc: - cleanup sql/event_priv.h: -cleanup sql/event_timed.cc: cleanup
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
are not possible because the scheduler thread code is ran inside the
|
||||
main thread (no spawning takes place. If you want to debug client
|
||||
connection then start with --one-thread and make the define
|
||||
DBUG_FAULTY_THR2 !
|
||||
DBUG_FAULTY_THR !
|
||||
*/
|
||||
#define DBUG_FAULTY_THR2
|
||||
|
||||
@ -202,9 +202,6 @@ event_executor_main(void *arg)
|
||||
thus data should be freed at later stage.
|
||||
*/
|
||||
VOID(my_init_dynamic_array(&events_array, sizeof(event_timed), 50, 100));
|
||||
/**
|
||||
VOID(my_init_dynamic_array(&evex_executing_queue, sizeof(event_timed *), 50, 100));
|
||||
**/
|
||||
|
||||
evex_queue_init(&EVEX_EQ_NAME);
|
||||
|
||||
@ -533,7 +530,7 @@ evex_load_events_from_db(THD *thd)
|
||||
while (!(read_record_info.read_record(&read_record_info)))
|
||||
{
|
||||
event_timed *et, *et_copy;
|
||||
if (!(et= new event_timed()))
|
||||
if (!(et= new event_timed))
|
||||
{
|
||||
DBUG_PRINT("evex_load_events_from_db", ("Out of memory"));
|
||||
ret= -1;
|
||||
|
Reference in New Issue
Block a user