From 636bb59034fd13d2e1b27af42adbb01ddeb3bd82 Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 28 Apr 2016 17:15:38 +0300 Subject: Final fixes for Memory_used - Change some static variables to dynamic to ensure that we don't do any memory allocations before server starts or stops - Print more memory information on SIGHUP. Fixed output. - Write out if memory was lost if run with --debug-at-exit - Fixed wrong #ifdef in sql_cache.cc --- sql/rpl_gtid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/rpl_gtid.h') diff --git a/sql/rpl_gtid.h b/sql/rpl_gtid.h index ece6effbef6..f638a084e38 100644 --- a/sql/rpl_gtid.h +++ b/sql/rpl_gtid.h @@ -231,9 +231,10 @@ struct rpl_binlog_state /* Auxiliary buffer to sort gtid list. */ DYNAMIC_ARRAY gtid_sort_array; - rpl_binlog_state(); + rpl_binlog_state() :initialized(0) {} ~rpl_binlog_state(); + void init(); void reset_nolock(); void reset(); void free(); -- cgit v1.2.1