summaryrefslogtreecommitdiff
path: root/storage.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-11-01 14:38:27 -0700
committerdormando <dormando@rydia.net>2022-11-01 22:22:55 -0700
commit875371a75cbf1f92350de2d1fa0fae4a35ed572b (patch)
treeed38925e6afd54c4564b330ee12b6aeb8f1c035a /storage.c
parent5d2da18808d50705f5038f304974d99f75c30f25 (diff)
downloadmemcached-875371a75cbf1f92350de2d1fa0fae4a35ed572b.tar.gz
core: give threads unique names
allow users to differentiate thread functions externally to memcached. Useful for setting priorities or pinning threads to CPU's.
Diffstat (limited to 'storage.c')
-rw-r--r--storage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage.c b/storage.c
index f82d96b..257ff2f 100644
--- a/storage.c
+++ b/storage.c
@@ -686,6 +686,7 @@ int start_storage_write_thread(void *arg) {
strerror(ret));
return -1;
}
+ thread_setname(storage_write_tid, "mc-ext-write");
return 0;
}
@@ -1019,6 +1020,7 @@ int start_storage_compact_thread(void *arg) {
strerror(ret));
return -1;
}
+ thread_setname(storage_compact_tid, "mc-ext-compact");
return 0;
}