diff -r 921f83a8943f -r d218607f5a7e src/server/daemon/threadpools.c --- a/src/server/daemon/threadpools.c Sat Mar 25 17:18:51 2023 +0100 +++ b/src/server/daemon/threadpools.c Fri May 05 18:02:11 2023 +0200 @@ -47,7 +47,7 @@ int create_threadpool(cxstring name, ThreadPoolConfig *cfg) { if(thread_pool_map == NULL) { - thread_pool_map = cxHashMapCreate(cxDefaultAllocator, 16); + thread_pool_map = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16); } CxHashKey key = cx_hash_key_bytes((const unsigned char*)name.ptr, name.length); @@ -85,7 +85,7 @@ int create_io_pool(cxstring name, int numthreads) { if(io_pool_map == NULL) { - io_pool_map = cxHashMapCreate(cxDefaultAllocator, 4); + io_pool_map = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 4); } CxHashKey key = cx_hash_key_bytes((const unsigned char*)name.ptr, name.length); threadpool_t *pool = cxMapGet(io_pool_map, key);