Author: jfrederic.clere(a)jboss.com
Date: 2009-03-07 01:58:52 -0500 (Sat, 07 Mar 2009)
New Revision: 2341
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
remove useless lock.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-03-06 16:22:37 UTC
(rev 2340)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-03-07 06:58:52 UTC
(rev 2341)
@@ -1904,21 +1904,10 @@
const char *sticky;
char *oroute;
- if ((rv = PROXY_THREAD_LOCK(balancer)) != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
- "proxy: CLUSTER: (%s). Lock failed for post_request",
- balancer->name);
- return HTTP_INTERNAL_SERVER_ERROR;
- }
/* mark the work as not use */
helper = (proxy_cluster_helper *) worker->opaque;
helper->count_active--;
- if ((rv = PROXY_THREAD_UNLOCK(balancer)) != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
- "proxy: CLUSTER: (%s). Unlock failed for post_request",
- balancer->name);
- }
#if HAVE_CLUSTER_EX_DEBUG
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy_cluster_post_request for (%s)", balancer->name);
Show replies by date