From: Bradley Nicholes Date: Fri, 12 Apr 2002 22:11:44 +0000 (+0000) Subject: Readjustment of where the bucket is being allocated now that they are being X-Git-Tag: 2.0.36~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f317c2c9e640825fc258a8a96cbaf1288ba0cd61;p=thirdparty%2Fapache%2Fhttpd.git Readjustment of where the bucket is being allocated now that they are being 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 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index dc337aa77fb..9ec63fb2f7e 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -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)) {