src/server/daemon/threadpools.c

changeset 579
e10457d74fe1
parent 577
4f5ccaea4a92
--- a/src/server/daemon/threadpools.c	Mon Feb 10 17:44:51 2025 +0100
+++ b/src/server/daemon/threadpools.c	Sun Mar 02 18:10:52 2025 +0100
@@ -150,7 +150,7 @@
 
 void shutdown_threadpools(int timeout) {
     log_ereport(LOG_INFORM, "shutdown threadpools");
-    CxIterator i = cxMapIteratorValues(thread_pool_map);
+    CxMapIterator i = cxMapIteratorValues(thread_pool_map);
     cx_foreach(threadpool_t*, tp, i) {
         threadpool_shutdown(tp, timeout);
     }
@@ -158,6 +158,6 @@
     cx_foreach(threadpool_t*, tp, i) {
         threadpool_shutdown(tp, timeout);
     }
-    cxMapDestroy(thread_pool_map);
-    cxMapDestroy(io_pool_map);
+    cxMapFree(thread_pool_map);
+    cxMapFree(io_pool_map);
 }

mercurial