summaryrefslogtreecommitdiff
path: root/sql/rpl_utility.h
diff options
context:
space:
mode:
authorunknown <mats@romeo.(none)>2007-02-26 17:44:55 +0100
committerunknown <mats@romeo.(none)>2007-02-26 17:44:55 +0100
commit236bb807330446e23733a895b937073cf325fb7e (patch)
treeae16b56efa7b45a7beb603a53d024a4de87db6af /sql/rpl_utility.h
parentacc120071ce87c2456bb0db08d96e7714c3a1604 (diff)
downloadmariadb-git-236bb807330446e23733a895b937073cf325fb7e.tar.gz
BUG#26634 (Valgrind failure in tree: memory loss for memory allocated in rpl_utility.h):
Adding code to release allocated memory when tables_to_lock list is cleared. sql/log_event.cc: Using RPL_TABLE_LIST instead of TABLE_LIST for tables_to_lock. sql/rpl_rli.cc: Moving st_relay_log_info::clear_tables_to_lock() into rpl_rli.cc. Adding code to release memory allocated for saved table definition. sql/rpl_rli.h: Moving st_relay_log_info::clear_tables_to_lock() into rpl_rli.cc. Using RPL_TABLE_LIST instead of TABLE_LIST for tables_to_lock. sql/rpl_utility.h: Adding forward declarations. Adding boolean to tell if tabledef is valid.
Diffstat (limited to 'sql/rpl_utility.h')
-rw-r--r--sql/rpl_utility.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/rpl_utility.h b/sql/rpl_utility.h
index 8694b5724f9..b1aa642619c 100644
--- a/sql/rpl_utility.h
+++ b/sql/rpl_utility.h
@@ -22,6 +22,9 @@
#include "mysql_priv.h"
+struct st_relay_log_info;
+typedef st_relay_log_info RELAY_LOG_INFO;
+
uint32
field_length_from_packed(enum_field_types field_type, byte const *data);
@@ -128,6 +131,7 @@ private:
struct RPL_TABLE_LIST
: public st_table_list
{
+ bool m_tabledef_valid;
table_def m_tabledef;
};