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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
af2e75cd
Commit
af2e75cd
authored
Oct 10, 2019
by
Will DeVries
Committed by
Sergei Petrunia
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up ClustrixDB handlerton memory.
parent
aaa182b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
storage/clustrixdb/ha_clustrixdb.cc
storage/clustrixdb/ha_clustrixdb.cc
+16
-2
No files found.
storage/clustrixdb/ha_clustrixdb.cc
View file @
af2e75cd
...
...
@@ -53,13 +53,20 @@ static MYSQL_SYSVAR_STR
int
host_list_cnt
;
char
**
host_list
;
static
void
update_host_list
(
char
*
clustrix_host
)
static
void
free_host_list
()
{
if
(
host_list
)
{
for
(
int
i
=
0
;
host_list
[
i
];
i
++
)
my_free
(
host_list
[
i
]);
my_free
(
host_list
);
host_list
=
NULL
;
}
}
static
void
update_host_list
(
char
*
clustrix_host
)
{
free_host_list
();
int
cnt
=
0
;
for
(
char
*
p
=
clustrix_host
,
*
s
=
clustrix_host
;
;
p
++
)
{
...
...
@@ -1153,6 +1160,13 @@ static int clustrixdb_init(void *p)
DBUG_RETURN
(
0
);
}
static
int
clustrixdb_deinit
(
void
*
p
)
{
DBUG_ENTER
(
"clustrixdb_deinit"
);
free_host_list
();
DBUG_RETURN
(
0
);
}
struct
st_mysql_show_var
clustrixdb_status_vars
[]
=
{
{
NullS
,
NullS
,
SHOW_LONG
}
...
...
@@ -1186,7 +1200,7 @@ maria_declare_plugin(clustrixdb)
"ClustrixDB storage engine"
,
/* Plugin Description */
PLUGIN_LICENSE_GPL
,
/* Plugin Licence */
clustrixdb_init
,
/* Plugin Entry Point */
NULL
,
/* Plugin Deinitializer */
clustrixdb_deinit
,
/* Plugin Deinitializer */
0x0001
,
/* Hex Version Number (0.1) */
NULL
/* clustrixdb_status_vars */
,
/* Status Variables */
clustrixdb_system_variables
,
/* System Variables */
...
...
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