diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2015-04-06 17:25:52 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2015-06-30 13:17:09 +0300 |
commit | ca276729bc46a2eb79bcddce83f76adab5f64d76 (patch) | |
tree | 9ba4d44706d41dffdd2bc59b118f01590fa1c4f2 /sql/log_event.h | |
parent | 8a1b7c9c6530bfcf832cedb6fe3436636e7e4e9f (diff) | |
download | mariadb-git-ca276729bc46a2eb79bcddce83f76adab5f64d76.tar.gz |
[MDEV-6877] Fixed Update_rows_log_event to correctly apply update log events
Update_rows_log_event must make use of the after image bitmap when
detecting which columns to update.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 9abbf8ad424..d602c704828 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -4410,6 +4410,14 @@ protected: int write_row(rpl_group_info *, const bool); // Unpack the current row into m_table->record[0] + int unpack_current_row(rpl_group_info *rgi, MY_BITMAP const *cols) + { + DBUG_ASSERT(m_table); + + ASSERT_OR_RETURN_ERROR(m_curr_row < m_rows_end, HA_ERR_CORRUPT_EVENT); + return ::unpack_row(rgi, m_table, m_width, m_curr_row, cols, + &m_curr_row_end, &m_master_reclength, m_rows_end); + } int unpack_current_row(rpl_group_info *rgi) { DBUG_ASSERT(m_table); |