]> granicus.if.org Git - apache/commitdiff
Readjustment of where the bucket is being allocated now that they are being
authorBradley Nicholes <bnicholes@apache.org>
Fri, 12 Apr 2002 22:11:44 +0000 (22:11 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 12 Apr 2002 22:11:44 +0000 (22:11 +0000)
cleaned up.  Need to move the call to after apr_pool_clear() so that it doesn't
get cleanup too soon and never reallocated.

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

server/mpm/netware/mpm_netware.c

index dc337aa77fb8ea08b7235a27c0584bf2b5f3ae87..9ec63fb2f7e012a7e7cfffc92d39d3d606080ef9 100644 (file)
@@ -376,8 +376,6 @@ void worker_main(void *arg)
     apr_pool_create_ex(&ptrans, NULL, NULL, allocator);
     apr_allocator_set_owner(allocator, ptrans);
 
-    bucket_alloc = apr_bucket_alloc_create(ptrans);
-
     apr_pool_tag(ptrans, "transaction");
 
     apr_thread_mutex_lock(worker_thread_count_mutex);
@@ -393,6 +391,7 @@ void worker_main(void *arg)
         */
         current_conn = NULL;
         apr_pool_clear(ptrans);
+        bucket_alloc = apr_bucket_alloc_create(ptrans);
 
         if ((ap_max_requests_per_child > 0
             && requests_this_child++ >= ap_max_requests_per_child)) {