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
581d8525
Commit
581d8525
authored
Oct 22, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8868 Consider adding a check for libjemalloc version in cmake and/or at runtime
add a run-time check for jemalloc >= 2.3
parent
6f075478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+17
-3
No files found.
storage/tokudb/hatoku_hton.cc
View file @
581d8525
...
...
@@ -356,9 +356,23 @@ static int tokudb_init_func(void *p) {
tokudb_hton
=
(
handlerton
*
)
p
;
#if TOKUDB_CHECK_JEMALLOC
if
(
tokudb_check_jemalloc
&&
dlsym
(
RTLD_DEFAULT
,
"mallctl"
)
==
NULL
)
{
sql_print_error
(
"%s is not initialized because jemalloc is not loaded"
,
tokudb_hton_name
);
goto
error
;
if
(
tokudb_check_jemalloc
)
{
typedef
int
(
*
mallctl_type
)(
const
char
*
,
void
*
,
size_t
*
,
void
*
,
size_t
);
mallctl_type
mallctl_func
;
mallctl_func
=
(
mallctl_type
)
dlsym
(
RTLD_DEFAULT
,
"mallctl"
);
if
(
!
mallctl_func
)
{
sql_print_error
(
"%s is not initialized because jemalloc is not loaded"
,
tokudb_hton_name
);
goto
error
;
}
char
*
ver
;
size_t
len
=
sizeof
(
ver
);
mallctl_func
(
"version"
,
&
ver
,
&
len
,
NULL
,
0
);
/* jemalloc 2.2.5 crashes mysql-test */
if
(
strcmp
(
ver
,
"2.3."
)
<
0
)
{
sql_print_error
(
"%s is not initialized because jemalloc is older than 2.3.0"
,
tokudb_hton_name
);
goto
error
;
}
}
#endif
...
...
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