~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_insert_delayed.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
# Bug #29571: INSERT DELAYED IGNORE written to binary log on the master but
91
91
# on the slave
92
92
#
93
 
if  (`SELECT @@global.binlog_format != 'ROW'`)
 
93
if  ($binlog_format_statement)
94
94
{
95
95
  #flush the logs before the test
96
96
  connection slave;
103
103
INSERT DELAYED IGNORE INTO t1 VALUES(1);
104
104
INSERT DELAYED IGNORE INTO t1 VALUES(1);
105
105
flush table t1; # to wait for INSERT DELAYED to be done
106
 
 
107
 
if  (`SELECT @@global.binlog_format != 'ROW'`)
 
106
if  ($binlog_format_statement)
108
107
{
109
108
  #must show two INSERT DELAYED
110
 
  --replace_column 1 x 2 x 3 x 4 x 5 x
111
 
  show binlog events in 'master-bin.000002' LIMIT 2,2;
 
109
  --let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1)
 
110
  --let $binlog_limit= 1,2
 
111
  --source include/show_binlog_events.inc
112
112
}
113
113
select * from t1;
114
114
 
115
115
sync_slave_with_master;
116
116
echo On slave;
117
 
if  (`SELECT @@global.binlog_format != 'ROW'`)
 
117
if  ($binlog_format_statement)
118
118
{
119
119
  #must show two INSERT DELAYED
120
 
  --replace_column 1 x 2 x 3 x 4 x 5 x
121
 
  show binlog events in 'slave-bin.000002' LIMIT 2,2;
 
120
  --let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1)
 
121
  --let $binlog_limit= 1,2
 
122
  --source include/show_binlog_events.inc
122
123
}
123
124
select * from t1;
124
125