From: Jim Jagielski Date: Tue, 10 Apr 2007 12:38:08 +0000 (+0000) Subject: Merge r484789 from trunk: X-Git-Tag: 2.2.5~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57edcafb751728413e53c54b82b6ee1c4454ab9;p=thirdparty%2Fapache%2Fhttpd.git Merge r484789 from trunk: We are doing nothing here... but keep the stubs in case we ever do. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@527107 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index 1616d92b9de..e3207d9a51e 100644 --- a/STATUS +++ b/STATUS @@ -77,20 +77,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_proxy_balancer: Remove unnecessary lock/unlock for - the post_request hook. We are actually doing nothing here. - But keep the code (but macroed out) for future usage. - Trunk version of patch: - http://svn.apache.org/viewvc?view=rev&revision=484789 - http://svn.apache.org/viewvc?view=rev&revision=484794 - 2.2.x version of patch: - Trunk version works. - +1: jim, mturk, rpluem - rpluem says: Shouldn't we remove this code on 2.2.x? Keeping seems to - be ok for me on trunk, but on a stable branch? - jim says: the reason why we keep it is in case we - ever start using it. So we keep the framework in - that case. Make trunk backports easier. PATCHES PROPOSED TO BACKPORT FROM TRUNK: diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 02f5ac3a3e2..5b376cbd762 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -497,6 +497,8 @@ static int proxy_balancer_post_request(proxy_worker *worker, request_rec *r, proxy_server_conf *conf) { + +#if 0 apr_status_t rv; if ((rv = PROXY_THREAD_LOCK(balancer)) != APR_SUCCESS) { @@ -505,12 +507,7 @@ static int proxy_balancer_post_request(proxy_worker *worker, balancer->name); return HTTP_INTERNAL_SERVER_ERROR; } - /* TODO: calculate the bytes transferred - * This will enable to elect the worker that has - * the lowest load. - * The bytes transferred depends on the protocol - * used, so each protocol handler should keep the - * track on that. + /* TODO: placeholder for post_request actions */ if ((rv = PROXY_THREAD_UNLOCK(balancer)) != APR_SUCCESS) { @@ -521,6 +518,8 @@ static int proxy_balancer_post_request(proxy_worker *worker, ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "proxy_balancer_post_request for (%s)", balancer->name); +#endif + return OK; }