@@ -30,8 +30,8 @@ show status like 'Slave_before_image_inconsistencies';
3030Variable_name Value
3131Slave_before_image_inconsistencies 1
3232select * from information_schema.RBR_BI_INCONSISTENCIES;
33- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
34- test.t1 uuid:12 master-bin.000001:3445 c=1 c=2
33+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
34+ test.t1 uuid:12 master-bin.000001:3445 c=1 c=2 a=1
3535set @@sql_log_bin = 0;
3636update t1 set c = 1;
3737set @@sql_log_bin = 1;
@@ -44,8 +44,8 @@ show status like 'Slave_before_image_inconsistencies';
4444Variable_name Value
4545Slave_before_image_inconsistencies 1
4646select * from information_schema.RBR_BI_INCONSISTENCIES;
47- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
48- test.t1 uuid:12 master-bin.000001:3445 c=1 c=2
47+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
48+ test.t1 uuid:12 master-bin.000001:3445 c=1 c=2 a=1
4949set @@sql_log_bin = 0;
5050update t2 set c = 1;
5151set @@sql_log_bin = 1;
@@ -58,8 +58,8 @@ show status like 'Slave_before_image_inconsistencies';
5858Variable_name Value
5959Slave_before_image_inconsistencies 1
6060select * from information_schema.RBR_BI_INCONSISTENCIES;
61- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
62- test.t1 uuid:12 master-bin.000001:3445 c=1 c=2
61+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
62+ test.t1 uuid:12 master-bin.000001:3445 c=1 c=2 a=1
6363set @@sql_log_bin = 0;
6464update t3 set c = 1;
6565set @@sql_log_bin = 1;
@@ -71,8 +71,8 @@ show status like 'Slave_before_image_inconsistencies';
7171Variable_name Value
7272Slave_before_image_inconsistencies 1
7373select * from information_schema.RBR_BI_INCONSISTENCIES;
74- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
75- test.t1 uuid:12 master-bin.000001:3445 c=1 c=2
74+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
75+ test.t1 uuid:12 master-bin.000001:3445 c=1 c=2 a=1
7676include/wait_for_slave_sql_error.inc [errno=1032]
7777set @@sql_log_bin = 0;
7878update t4 set c = 1;
@@ -93,7 +93,7 @@ show status like 'Slave_before_image_inconsistencies';
9393Variable_name Value
9494Slave_before_image_inconsistencies 0
9595select * from information_schema.RBR_BI_INCONSISTENCIES;
96- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
96+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
9797set @@global.debug = "-d,dbg.fire_bi_inconsistency";
9898select * from t1;
9999a b c
@@ -150,8 +150,8 @@ show status like 'Slave_before_image_inconsistencies';
150150Variable_name Value
151151Slave_before_image_inconsistencies 1
152152select * from information_schema.RBR_BI_INCONSISTENCIES;
153- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
154- test.t1 uuid:32 master-bin.000001:8666 c=1 c=2
153+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
154+ test.t1 uuid:32 master-bin.000001:8666 c=1 c=2 a=1
155155set @@sql_log_bin = 0;
156156update t1 set c = 1;
157157set @@sql_log_bin = 1;
@@ -164,8 +164,8 @@ show status like 'Slave_before_image_inconsistencies';
164164Variable_name Value
165165Slave_before_image_inconsistencies 1
166166select * from information_schema.RBR_BI_INCONSISTENCIES;
167- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
168- test.t1 uuid:32 master-bin.000001:8666 c=1 c=2
167+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
168+ test.t1 uuid:32 master-bin.000001:8666 c=1 c=2 a=1
169169set @@sql_log_bin = 0;
170170update t2 set c = 1;
171171set @@sql_log_bin = 1;
@@ -178,8 +178,8 @@ show status like 'Slave_before_image_inconsistencies';
178178Variable_name Value
179179Slave_before_image_inconsistencies 1
180180select * from information_schema.RBR_BI_INCONSISTENCIES;
181- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
182- test.t1 uuid:32 master-bin.000001:8666 c=1 c=2
181+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
182+ test.t1 uuid:32 master-bin.000001:8666 c=1 c=2 a=1
183183set @@sql_log_bin = 0;
184184update t3 set c = 1;
185185set @@sql_log_bin = 1;
@@ -191,8 +191,8 @@ show status like 'Slave_before_image_inconsistencies';
191191Variable_name Value
192192Slave_before_image_inconsistencies 1
193193select * from information_schema.RBR_BI_INCONSISTENCIES;
194- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
195- test.t1 uuid:32 master-bin.000001:8666 c=1 c=2
194+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
195+ test.t1 uuid:32 master-bin.000001:8666 c=1 c=2 a=1
196196include/wait_for_slave_sql_error.inc [errno=1032]
197197set @@sql_log_bin = 0;
198198update t4 set c = 1;
@@ -213,7 +213,7 @@ show status like 'Slave_before_image_inconsistencies';
213213Variable_name Value
214214Slave_before_image_inconsistencies 0
215215select * from information_schema.RBR_BI_INCONSISTENCIES;
216- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
216+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
217217set @@global.debug = "-d,dbg.fire_bi_inconsistency";
218218select * from t1;
219219a b c
@@ -261,8 +261,8 @@ show status like 'Slave_before_image_inconsistencies';
261261Variable_name Value
262262Slave_before_image_inconsistencies 1
263263select * from information_schema.RBR_BI_INCONSISTENCIES;
264- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
265- test.ttl_table uuid:47 master-bin.000001:12751 b=1 b=11
264+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
265+ test.ttl_table uuid:47 master-bin.000001:12751 b=1 b=11 a=pk
266266set @@global.slave_check_before_image_consistency = OFF;
267267set @@global.slave_check_before_image_consistency = COUNT;
268268set @@global.enable_strict_consistency_for_ttl_tables = 0;
@@ -272,7 +272,7 @@ show status like 'Slave_before_image_inconsistencies';
272272Variable_name Value
273273Slave_before_image_inconsistencies 0
274274select * from information_schema.RBR_BI_INCONSISTENCIES;
275- TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE
275+ TABLE LAST_GTID SOURCE_LOG_POS SOURCE_IMAGE LOCAL_IMAGE PRIMARY_KEY
276276drop table ttl_table;
277277include/sync_slave_sql_with_master.inc
278278include/stop_slave.inc
0 commit comments