mirror of
https://github.com/apache/httpd.git
synced 2025-07-29 12:37:06 +00:00
mod_proxy: Follow up to r1912245: ap_proxy_ prefix for extern functions.
Even if they are not part of the API (not in mod_proxy.h) hence requires no MMN bump, {get,set,increment_,decrement_}busy_count() being AP_PROXY_DECLARE()d could name-collide with a third-party module's functions. Rename them using the ap_proxy_ prefix, with an underscore after the verb for for all of them too (for consistency), that is: ap_proxy_{get,set,increment,decrement}_busy_count() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -623,8 +623,8 @@ static int proxy_balancer_pre_request(proxy_worker **worker,
|
||||
*worker = runtime;
|
||||
}
|
||||
|
||||
increment_busy_count(*worker);
|
||||
apr_pool_cleanup_register(r->pool, *worker, decrement_busy_count,
|
||||
ap_proxy_increment_busy_count(*worker);
|
||||
apr_pool_cleanup_register(r->pool, *worker, ap_proxy_decrement_busy_count,
|
||||
apr_pool_cleanup_null);
|
||||
|
||||
/* Add balancer/worker info to env. */
|
||||
@ -1563,7 +1563,7 @@ static void balancer_display_page(request_rec *r, proxy_server_conf *conf,
|
||||
"</httpd:redirect>\n", NULL);
|
||||
ap_rprintf(r,
|
||||
" <httpd:busy>%" APR_SIZE_T_FMT "</httpd:busy>\n",
|
||||
getbusy_count(worker));
|
||||
ap_proxy_get_busy_count(worker));
|
||||
ap_rprintf(r, " <httpd:lbset>%d</httpd:lbset>\n",
|
||||
worker->s->lbset);
|
||||
/* End proxy_worker_stat */
|
||||
@ -1736,7 +1736,7 @@ static void balancer_display_page(request_rec *r, proxy_server_conf *conf,
|
||||
ap_rvputs(r, ap_proxy_parse_wstatus(r->pool, worker), NULL);
|
||||
ap_rputs("</td>", r);
|
||||
ap_rprintf(r, "<td>%" APR_SIZE_T_FMT "</td>", worker->s->elected);
|
||||
ap_rprintf(r, "<td>%" APR_SIZE_T_FMT "</td>", getbusy_count(worker));
|
||||
ap_rprintf(r, "<td>%" APR_SIZE_T_FMT "</td>", ap_proxy_get_busy_count(worker));
|
||||
ap_rprintf(r, "<td>%d</td><td>", worker->s->lbstatus);
|
||||
ap_rputs(apr_strfsize(worker->s->transferred, fbuf), r);
|
||||
ap_rputs("</td><td>", r);
|
||||
|
Reference in New Issue
Block a user