1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: UPDATE on row-based replication [closes: #94]

This commit is contained in:
kevg
2016-12-16 14:11:23 +03:00
committed by Aleksey Midenkov
parent 41d9840850
commit ef10ef98ab
7 changed files with 148 additions and 19 deletions

View File

@ -220,7 +220,8 @@ int ha_sequence::write_row(uchar *buf)
sequence->copy(&tmp_seq);
rows_changed++;
/* We have to do the logging while we hold the sequence mutex */
error= binlog_log_row(table, 0, buf, log_func);
if (table->file->check_table_binlog_row_based(1))
error= binlog_log_row(table, 0, buf, log_func);
row_already_logged= 1;
}
@ -254,7 +255,8 @@ int ha_sequence::update_row(const uchar *old_data, uchar *new_data)
sequence->copy(&tmp_seq);
rows_changed++;
/* We have to do the logging while we hold the sequence mutex */
error= binlog_log_row(table, old_data, new_data,
if (table->file->check_table_binlog_row_based(1))
error= binlog_log_row(table, old_data, new_data,
Update_rows_log_event::binlog_row_logging_function);
row_already_logged= 1;
}