summaryrefslogtreecommitdiff
path: root/sql/rpl_injector.h
diff options
context:
space:
mode:
authorunknown <knielsen@mysql.com>2006-06-19 14:31:22 +0200
committerunknown <knielsen@mysql.com>2006-06-19 14:31:22 +0200
commitcb28cf8d88bf2a0e99fc37059d05c97dd1a904ec (patch)
tree8a0f64dee453650cb5f36c232ea082e91390c577 /sql/rpl_injector.h
parent78deb348f0d8579cccbac2afb1fd5ec982d2fd07 (diff)
downloadmariadb-git-cb28cf8d88bf2a0e99fc37059d05c97dd1a904ec.tar.gz
Fix a Valgrind leak error report for not freed binlog injector singleton.
sql/mysqld.cc: Free the binlog injector singleton during shutdown. sql/rpl_injector.cc: Add free_instance() method. sql/rpl_injector.h: Add free_instance() method.
Diffstat (limited to 'sql/rpl_injector.h')
-rw-r--r--sql/rpl_injector.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/rpl_injector.h b/sql/rpl_injector.h
index 14d5cca9b6c..c09e9753df3 100644
--- a/sql/rpl_injector.h
+++ b/sql/rpl_injector.h
@@ -59,6 +59,11 @@ public:
*/
static injector *instance();
+ /*
+ Delete the singleton instance (if allocated). Used during server shutdown.
+ */
+ static void free_instance();
+
/*
A transaction where rows can be added.