MCPcopy Create free account
hub / github.com/apache/httpd / balancer_pre_config

Function balancer_pre_config

modules/proxy/mod_proxy_balancer.c:48–64  ·  view source on GitHub ↗

* Register our mutex type before the config is read so we * can adjust the mutex settings using the Mutex directive. */

Source from the content-addressed store, hash-verified

46 * can adjust the mutex settings using the Mutex directive.
47 */
48static int balancer_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
49 apr_pool_t *ptemp)
50{
51
52 apr_status_t rv;
53
54 rv = ap_mutex_register(pconf, balancer_mutex_type, NULL,
55 APR_LOCK_DEFAULT, 0);
56 if (rv != APR_SUCCESS) {
57 return rv;
58 }
59 set_worker_hc_param_f = APR_RETRIEVE_OPTIONAL_FN(set_worker_hc_param);
60 hc_show_exprs_f = APR_RETRIEVE_OPTIONAL_FN(hc_show_exprs);
61 hc_select_exprs_f = APR_RETRIEVE_OPTIONAL_FN(hc_select_exprs);
62 hc_valid_expr_f = APR_RETRIEVE_OPTIONAL_FN(hc_valid_expr);
63 return OK;
64}
65
66#if 0
67extern void proxy_update_members(proxy_balancer **balancer, request_rec *r,

Callers

nothing calls this directly

Calls 1

ap_mutex_registerFunction · 0.85

Tested by

no test coverage detected