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
2627f775
Commit
2627f775
authored
Dec 13, 2007
by
gluh@mysql.com/eagle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
valgrind error fix
parent
9df070ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sql/ha_blackhole.cc
sql/ha_blackhole.cc
+9
-1
No files found.
sql/ha_blackhole.cc
View file @
2627f775
...
@@ -296,13 +296,21 @@ static byte* blackhole_get_key(st_blackhole_share *share, uint *length,
...
@@ -296,13 +296,21 @@ static byte* blackhole_get_key(st_blackhole_share *share, uint *length,
}
}
static
void
blackhole_free_key
(
st_blackhole_share
*
share
)
{
thr_lock_delete
(
&
share
->
lock
);
my_free
((
byte
*
)
share
,
MYF
(
0
));
}
bool
blackhole_db_init
()
bool
blackhole_db_init
()
{
{
DBUG_ENTER
(
"blackhole_db_init"
);
DBUG_ENTER
(
"blackhole_db_init"
);
if
(
pthread_mutex_init
(
&
blackhole_mutex
,
MY_MUTEX_INIT_FAST
))
if
(
pthread_mutex_init
(
&
blackhole_mutex
,
MY_MUTEX_INIT_FAST
))
goto
error
;
goto
error
;
if
(
hash_init
(
&
blackhole_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
if
(
hash_init
(
&
blackhole_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
(
hash_get_key
)
blackhole_get_key
,
0
,
0
))
(
hash_get_key
)
blackhole_get_key
,
(
hash_free_key
)
blackhole_free_key
,
0
))
{
{
VOID
(
pthread_mutex_destroy
(
&
blackhole_mutex
));
VOID
(
pthread_mutex_destroy
(
&
blackhole_mutex
));
}
}
...
...
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