Skip to content

Commit

Permalink
MDEV-16264 fixup: Add missing 'static'
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Aug 17, 2021
1 parent 2553130 commit cce3378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/srv/srv0srv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ static std::mutex purge_thd_mutex;
extern void* thd_attach_thd(THD*);
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);
if (purge_thds.empty()) {
Expand All @@ -1978,7 +1978,7 @@ THD* acquire_thd(void **ctx)
return thd;
}

void release_thd(THD *thd, void *ctx)
static void release_thd(THD *thd, void *ctx)
{
thd_detach_thd(ctx);
std::unique_lock<std::mutex> lk(purge_thd_mutex);
Expand Down

0 comments on commit cce3378

Please sign in to comment.