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
54b61b8b
Commit
54b61b8b
authored
Dec 29, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP9091416: destroy timer mutex when threadpool scheduler shuts down.
Fixes valgrind warning.
parent
ecad00bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/threadpool_unix.cc
sql/threadpool_unix.cc
+5
-0
No files found.
sql/threadpool_unix.cc
View file @
54b61b8b
...
...
@@ -470,7 +470,10 @@ static void* timer_thread(void *param)
mysql_mutex_lock
(
&
timer
->
mutex
);
int
err
=
mysql_cond_timedwait
(
&
timer
->
cond
,
&
timer
->
mutex
,
&
ts
);
if
(
timer
->
shutdown
)
{
mysql_mutex_unlock
(
&
timer
->
mutex
);
break
;
}
if
(
err
==
ETIMEDOUT
)
{
timer
->
current_microtime
=
microsecond_interval_timer
();
...
...
@@ -488,6 +491,8 @@ static void* timer_thread(void *param)
}
mysql_mutex_unlock
(
&
timer
->
mutex
);
}
mysql_mutex_destroy
(
&
timer
->
mutex
);
DBUG_POP
();
my_thread_end
();
return
NULL
;
...
...
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