summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@oracle.com>2011-05-24 00:33:55 +0100
committerLuis Soares <luis.soares@oracle.com>2011-05-24 00:33:55 +0100
commitad826d2221deb763e97be259ce373102f8e5a593 (patch)
tree786bf19ddff57c089f3cfe1ce156bf8ee542b99e /sql/rpl_rli.cc
parente5b36af2650bd42751b6343ae5b977ece6db064c (diff)
parentd0f6fde3deb4752cd13fe2e8ac907477331da1f5 (diff)
downloadmariadb-git-ad826d2221deb763e97be259ce373102f8e5a593.tar.gz
BUG#12558519
Automerged bzr bundle from bug report into latest mysql-5.5.
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 9a5c7521752..e72c813f09f 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -1258,6 +1258,16 @@ void Relay_log_info::clear_tables_to_lock()
tables_to_lock->m_tabledef.table_def::~table_def();
tables_to_lock->m_tabledef_valid= FALSE;
}
+
+ /*
+ If blob fields were used during conversion of field values
+ from the master table into the slave table, then we need to
+ free the memory used temporarily to store their values before
+ copying into the slave's table.
+ */
+ if (tables_to_lock->m_conv_table)
+ free_blobs(tables_to_lock->m_conv_table);
+
tables_to_lock=
static_cast<RPL_TABLE_LIST*>(tables_to_lock->next_global);
tables_to_lock_count--;