summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-08-17 12:01:10 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-08-17 12:01:10 +0300
commitcce33787c37a6a0724e518f0f74a445a3682dfc4 (patch)
treeb0f3df468b7f8a53f07f807eff14c1f05d843041
parent255313048ca00c48fe78250014570034475a9178 (diff)
downloadmariadb-git-cce33787c37a6a0724e518f0f74a445a3682dfc4.tar.gz
MDEV-16264 fixup: Add missing 'static'
-rw-r--r--storage/innobase/srv/srv0srv.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc
index ad221dc205c..9525219a656 100644
--- a/storage/innobase/srv/srv0srv.cc
+++ b/storage/innobase/srv/srv0srv.cc
@@ -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()) {
@@ -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);