Debian Codegraph @

mysql-test/suite/rpl/r/rpl_different_index_master_slave.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 ==== Initialize ====
7 [connection slave]
8 SET @old_slave_rows_search_algorithms = @@global.slave_rows_search_algorithms;
9 Warnings:
10 Warning 1287 '@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
11 SET @@global.slave_rows_search_algorithms = 'INDEX_SCAN,TABLE_SCAN';
12 Warnings:
13 Warning 1287 '@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
14 include/start_slave.inc
15 [connection master]
16 SET @@session.binlog_row_image = 'MINIMAL';
17 SET @@session.sql_log_bin = 0;
18 CREATE TABLE t1 (a INT, b INT, PRIMARY KEY(b));
19 SET @@session.sql_log_bin = 1;
20 [connection slave]
21 CREATE TABLE t1 (a INT, b INT NOT NULL, UNIQUE KEY(b), PRIMARY KEY(a));
22 [connection master]
23 INSERT INTO t1 VALUES [100 rows];
24 include/sync_slave_sql_with_master.inc
25 ==== Test ====
26 [connection master]
27 DELETE FROM t1 WHERE b != 0 ORDER BY b DESC;
28 include/sync_slave_sql_with_master.inc
29 include/assert.inc [The search algorithm used while deleting rows is INDEX_SCAN, in the code before this bug it was TABLE_SCAN]
30 [connection master]
31 DROP TABLE t1;
32 include/sync_slave_sql_with_master.inc
33 include/stop_slave.inc
34 SET @@global.slave_rows_search_algorithms = @old_slave_rows_search_algorithms;
35 Warnings:
36 Warning 1287 '@@slave_rows_search_algorithms' is deprecated and will be removed in a future release.
37 include/rpl_end.inc