diff options
author | Sujatha Sivakumar <sujatha.sivakumar@oracle.com> | 2012-04-12 11:07:39 +0530 |
---|---|---|
committer | Sujatha Sivakumar <sujatha.sivakumar@oracle.com> | 2012-04-12 11:07:39 +0530 |
commit | 64e74d484fcbf6d348397b3ce4f32438754dc8bd (patch) | |
tree | 8a25a104bed5686805bd051d11174a86f386261a /VERSION | |
parent | 99b18a036cfb6d990e2f26bb43774735e2a9c7ab (diff) | |
download | mariadb-git-64e74d484fcbf6d348397b3ce4f32438754dc8bd.tar.gz |
BUG#12662190:COM_COMMIT IS NOT INCREMENTED FROM THE BINARY LOGS ON SLAVE, COM_BEGIN IS
PROBLEM:
--------
When binary log statements are replayed on the slave, BEGIN is represented
in com_counters but COMMIT is not. Similarly in 'ROW' based replication
'INSERT','UPDATE',and 'DELETE' com_counters are not getting incremented
when the binary log statements are replayed at slave.
ANALYSIS:
---------
In 'ROW' based replication for COMMIT,INSERT,UPDATE and DELETE operations
following special events are invoked.
Xid_log_event,Write_rows_log_event,Update_rows_log_event,Update_rows_log_event.
The above mentioned events doesn't go through the parser where the
'COM_COUNTERS' are incremented.
FIX:
-----
Increment statements are added at appropriate events.
Respective functions are listed below.
'Xid_log_event::do_apply_event'
'Write_rows_log_event::do_before_row_operations'
'Update_rows_log_event::do_before_row_operations'
'Delete_rows_log_event::do_before_row_operations'
sql/log_event.cc:
Added code to increment counts for 'COM_INSERT','COM_UPDATE',
'COM_DELETE' and 'COM_COMMIT'during ROW based replicaiton
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions