summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2015-04-06 17:25:52 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2015-06-30 13:17:09 +0300
commitca276729bc46a2eb79bcddce83f76adab5f64d76 (patch)
tree9ba4d44706d41dffdd2bc59b118f01590fa1c4f2 /sql/log_event.h
parent8a1b7c9c6530bfcf832cedb6fe3436636e7e4e9f (diff)
downloadmariadb-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.h8
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);