* Register our mutex type before the config is read so we * can adjust the mutex settings using the Mutex directive. */
| 46 | * can adjust the mutex settings using the Mutex directive. |
| 47 | */ |
| 48 | static 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 |
| 67 | extern void proxy_update_members(proxy_balancer **balancer, request_rec *r, |
nothing calls this directly
no test coverage detected