mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31776 Online ALTER reports the number of affected rows incorrectly
Add a new virtual function that will increase the inserted rows count for the insert log event and decrease it for the delete event. Reuses Rows_log_event::m_row_count on the replication side, which was only set on the logging side.
This commit is contained in:
committed by
Sergei Golubchik
parent
9c8554259a
commit
e026a366bf
@ -16,6 +16,8 @@ connection con2;
|
||||
insert into t1 values (123), (456), (789);
|
||||
set debug_sync= 'now SIGNAL end';
|
||||
connection default;
|
||||
affected rows: 4
|
||||
info: Records: 4 Duplicates: 0 Warnings: 0
|
||||
select * from t1;
|
||||
a b
|
||||
5 NULL
|
||||
@ -123,6 +125,8 @@ connection con2;
|
||||
update t1 set b= 55 where a = 1;
|
||||
set debug_sync= 'now SIGNAL end';
|
||||
connection default;
|
||||
affected rows: 2
|
||||
info: Records: 2 Duplicates: 0 Warnings: 0
|
||||
select * from t1;
|
||||
a b c
|
||||
1 55 1
|
||||
|
Reference in New Issue
Block a user