1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-29 00:08:14 +03:00

Bug #36435 rpl_events uses non-deterministic check

Select of the test could not perform deterministically, because the table remains to be 
updatable by the running event handler.

Fixed with changing verification to use a logical values instead of comparison 
with a pre-recorded results.
This commit is contained in:
aelkin/andrei@mysql1000.dsl.inet.fi
2008-04-30 21:41:50 +03:00
parent e24f509d2c
commit 9afdba04d6
2 changed files with 15 additions and 28 deletions

View File

@@ -41,18 +41,17 @@ let $wait_condition=
# check that table t1 contains something
--echo "Checking event data on the master"
--enable_info
--replace_column 3 TIMESTAMP
SELECT * FROM t1 ORDER BY id;
--disable_info
let $events_done=`SELECT count(*) FROM t1 id`;
--disable_query_log
eval SELECT $events_done > 0 as ONE;
--enable_query_log
sync_slave_with_master;
--echo "Checking event data on the slave"
--enable_info
--replace_column 3 TIMESTAMP
SELECT * FROM t1 ORDER BY id;
--disable_info
--disable_query_log
eval SELECT count(*) - $events_done as ZERO FROM t1 id;
--enable_query_log
--echo "Checking event is inactive on slave"
SELECT db, name, status, originator FROM mysql.event WHERE db = 'test' AND name = 'justonce';