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
cce33787
Commit
cce33787
authored
Aug 17, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16264 fixup: Add missing 'static'
parent
25531304
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+2
-2
No files found.
storage/innobase/srv/srv0srv.cc
View file @
cce33787
...
@@ -1960,7 +1960,7 @@ static std::mutex purge_thd_mutex;
...
@@ -1960,7 +1960,7 @@ static std::mutex purge_thd_mutex;
extern
void
*
thd_attach_thd
(
THD
*
);
extern
void
*
thd_attach_thd
(
THD
*
);
extern
void
thd_detach_thd
(
void
*
);
extern
void
thd_detach_thd
(
void
*
);
THD
*
acquire_thd
(
void
**
ctx
)
static
THD
*
acquire_thd
(
void
**
ctx
)
{
{
std
::
unique_lock
<
std
::
mutex
>
lk
(
purge_thd_mutex
);
std
::
unique_lock
<
std
::
mutex
>
lk
(
purge_thd_mutex
);
if
(
purge_thds
.
empty
())
{
if
(
purge_thds
.
empty
())
{
...
@@ -1978,7 +1978,7 @@ THD* acquire_thd(void **ctx)
...
@@ -1978,7 +1978,7 @@ THD* acquire_thd(void **ctx)
return
thd
;
return
thd
;
}
}
void
release_thd
(
THD
*
thd
,
void
*
ctx
)
static
void
release_thd
(
THD
*
thd
,
void
*
ctx
)
{
{
thd_detach_thd
(
ctx
);
thd_detach_thd
(
ctx
);
std
::
unique_lock
<
std
::
mutex
>
lk
(
purge_thd_mutex
);
std
::
unique_lock
<
std
::
mutex
>
lk
(
purge_thd_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