MCPcopy Create free account
hub / github.com/MariaDB/server / init_queue

Method init_queue

sql/event_queue.cc:135–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133*/
134
135bool
136Event_queue::init_queue(THD *thd)
137{
138 DBUG_ENTER("Event_queue::init_queue");
139 DBUG_PRINT("enter", ("this: %p", this));
140
141 LOCK_QUEUE_DATA();
142
143 if (::init_queue(&queue, EVENT_QUEUE_INITIAL_SIZE , 0 /*offset*/,
144 0 /*max_on_top*/, event_queue_element_compare_q,
145 NullS, 0, EVENT_QUEUE_EXTENT))
146 {
147 sql_print_error("Event Scheduler: Can't initialize the execution queue");
148 goto err;
149 }
150
151 UNLOCK_QUEUE_DATA();
152 DBUG_RETURN(FALSE);
153
154err:
155 UNLOCK_QUEUE_DATA();
156 DBUG_RETURN(TRUE);
157}
158
159
160/*

Callers 1

initMethod · 0.80

Calls 2

init_queueFunction · 0.85
sql_print_errorFunction · 0.70

Tested by

no test coverage detected