Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1b7fe109
Commit
1b7fe109
authored
Jun 19, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a Valgrind leak error report for not freed binlog injector singleton.
parent
f8b1b460
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
sql/mysqld.cc
sql/mysqld.cc
+7
-0
sql/rpl_injector.cc
sql/rpl_injector.cc
+10
-0
sql/rpl_injector.h
sql/rpl_injector.h
+5
-0
No files found.
sql/mysqld.cc
View file @
1b7fe109
...
...
@@ -28,6 +28,10 @@
#include "ha_myisam.h"
#ifdef HAVE_ROW_BASED_REPLICATION
#include "rpl_injector.h"
#endif
#ifdef WITH_INNOBASE_STORAGE_ENGINE
#define OPT_INNODB_DEFAULT 1
#else
...
...
@@ -1183,6 +1187,9 @@ void clean_up(bool print_message)
what they have that is dependent on the binlog
*/
ha_binlog_end
(
current_thd
);
#ifdef HAVE_ROW_BASED_REPLICATION
injector
::
free_instance
();
#endif
mysql_bin_log
.
cleanup
();
#ifdef HAVE_REPLICATION
...
...
sql/rpl_injector.cc
View file @
1b7fe109
...
...
@@ -155,6 +155,16 @@ injector *injector::instance()
return
s_injector
;
}
void
injector
::
free_instance
()
{
injector
*
inj
=
s_injector
;
if
(
inj
!=
0
)
{
s_injector
=
0
;
delete
inj
;
}
}
injector
::
transaction
injector
::
new_trans
(
THD
*
thd
)
...
...
sql/rpl_injector.h
View file @
1b7fe109
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment