]> granicus.if.org Git - apache/commitdiff
mpm_fdqueue: follow up to r1821624.
authorYann Ylavic <ylavic@apache.org>
Fri, 19 Jan 2018 12:23:05 +0000 (12:23 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 19 Jan 2018 12:23:05 +0000 (12:23 +0000)
Clear recycled_pools_count in ap_free_idle_pools().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821632 13f79535-47bb-0310-9956-ffa450edef68

server/mpm_fdqueue.c

index fbc08954b2db7625cb7b683100b580cd74017006..984653f36f033bfda9a2fac4ae05a6516baab8fb 100644 (file)
@@ -286,11 +286,13 @@ void ap_free_idle_pools(fd_queue_info_t *queue_info)
     apr_pool_t *p;
 
     queue_info->max_recycled_pools = 0;
-    do {
+    for (;;) {
         ap_pop_pool(&p, queue_info);
-        if (p != NULL)
-            apr_pool_destroy(p);
-    } while (p != NULL);
+        if (p == NULL)
+            break;
+        apr_pool_destroy(p);
+    }
+    apr_atomic_set32(&queue_info->recycled_pools_count, 0);
 }