summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy_balancer.c
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2006-12-08 22:38:40 +0100
committerJim Jagielski <jim@apache.org>2006-12-08 22:38:40 +0100
commitbf5a6bc8e591a58e1b7922eed10782a1fd594d11 (patch)
tree9c5d3ad7f8b81546dad134e38d03301e8669e42c /modules/proxy/mod_proxy_balancer.c
parentFailure to unlock is very nasty, so log it to help (diff)
downloadapache2-bf5a6bc8e591a58e1b7922eed10782a1fd594d11.tar.xz
apache2-bf5a6bc8e591a58e1b7922eed10782a1fd594d11.zip
Fix compile warning:
mod_proxy_balancer.c:537: warning: unused variable 'rv' git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@484794 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/proxy/mod_proxy_balancer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c
index 529fa1a201..63e5ca808f 100644
--- a/modules/proxy/mod_proxy_balancer.c
+++ b/modules/proxy/mod_proxy_balancer.c
@@ -534,9 +534,10 @@ static int proxy_balancer_post_request(proxy_worker *worker,
request_rec *r,
proxy_server_conf *conf)
{
- apr_status_t rv;
#if 0
+ apr_status_t rv;
+
if ((rv = PROXY_THREAD_LOCK(balancer)) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
"proxy: BALANCER: (%s). Lock failed for post_request",
@@ -555,6 +556,7 @@ static int proxy_balancer_post_request(proxy_worker *worker,
"proxy_balancer_post_request for (%s)", balancer->name);
#endif
+
return OK;
}