You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cut Nr. 8.
All tests pass.
Separated Event_scheduler into Event_queue and Event_scheduler.
Added new Event_scheduler_ng which is the new scheduler and is used
system-wide. Will be moved to the event_scheduler.cc in the future.
Using Event_timed in Event_queue as well as cloned during execution.
Next step is to have Event_worker_data which will be used during execution
and will take ::compile()/::execute() out of Event_timed.
select /*1*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
@@ -343,7 +342,7 @@ create event закачка on schedule every 10 hour do select get_lock("test_l
343
342
"Should have only 2 processes: the scheduler and the locked event"
344
343
select /*2*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
347
346
root localhost events_test Connect User lock select get_lock("test_lock2", 20)
348
347
"Release the mutex, the event worker should finish."
349
348
"Release the mutex, the event worker should finish."
@@ -359,13 +358,12 @@ create event закачка21 on schedule every 10 hour do select get_lock("test
359
358
"Should have only 3 processes: the scheduler, our conn and the locked event"
360
359
select /*3*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
363
362
root localhost events_test Connect User lock select get_lock("test_lock2_1", 20)
364
363
set global event_scheduler=2;
365
364
"Should have only our process now:"
366
365
select /*4*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
Copy file name to clipboardExpand all lines: mysql-test/r/events_bugs.result
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ end|
41
41
"Now if everything is fine the event has compiled and is locked
42
42
select /*1*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
45
45
root localhost events_test Connect User lock select get_lock('test_bug16407', 60)
46
46
select release_lock('test_bug16407');
47
47
release_lock('test_bug16407')
@@ -94,7 +94,7 @@ get_lock('ee_16407_2', 60)
94
94
set global event_scheduler= 1;
95
95
select /*2*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
98
98
root localhost events_test Connect User lock select get_lock('ee_16407_2', 60) /*ee_16407_2*/
99
99
root localhost events_test Connect User lock select get_lock('ee_16407_2', 60) /*ee_16407_3*/
100
100
root localhost events_test Connect User lock select get_lock('ee_16407_2', 60) /*ee_16407_4*/
@@ -103,7 +103,7 @@ release_lock('ee_16407_2')
103
103
1
104
104
select /*3*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
107
107
set global event_scheduler= 2;
108
108
select * from events_smode_test order by ev_name, a;
109
109
ev_name a
@@ -142,7 +142,7 @@ set global event_scheduler= 1;
142
142
"Should have 2 locked processes"
143
143
select /*4*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
event_scheduler localhost NULL Connect Waiting for next activation NULL
146
146
root localhost events_test Connect User lock select get_lock('ee_16407_5', 60) /*ee_16407_5*/
147
147
root localhost events_test Connect User lock select get_lock('ee_16407_5', 60) /*ee_16407_6*/
148
148
select release_lock('ee_16407_5');
@@ -151,7 +151,7 @@ release_lock('ee_16407_5')
151
151
"Should have 0 processes locked"
152
152
select /*5*/ user, host, db, command, state, info from information_schema.processlist where info is null or info not like '%processlist%' order by info;
0 commit comments