]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use only one slotmem for status and checker.
authorJean-Frederic Clere <jfclere@apache.org>
Thu, 3 Aug 2006 16:01:50 +0000 (16:01 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Thu, 3 Aug 2006 16:01:50 +0000 (16:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-proxy-scoreboard@428437 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_health_checker.c

index c7a60099689e45d2de807da2abe64316b7d8e565..44afc8c64fd783698afa9ade682f8e5039df801d 100644 (file)
@@ -40,13 +40,19 @@ static int healthck_post_config(apr_pool_t *pconf, apr_pool_t *plog,
 {
     const health_worker_method *worker_storage;
     worker_storage = ap_lookup_provider(PROXY_CKMETHOD, "default", "0");
+    proxy_server_conf *sconf = ap_get_module_config(s->module_config,
+                                                    &proxy_module);
+    char *slotmem_loc = sconf->slotmem_loc;
     
     if (worker_storage) {
         apr_status_t rv;
-        rv = worker_storage->create_slotmem("proxy/checker", ap_proxy_lb_workers(), pconf);
+        if (!slotmem_loc)
+            slotmem_loc = apr_pstrcat(pconf, ":", proxy_module.name, NULL);
+
+        rv = worker_storage->create_slotmem(slotmem_loc, ap_proxy_lb_workers(), pconf);
         if (rv != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
-                        "proxy: BALANCER: The health checker can't create slotmem");
+                        "proxy: HEALTHCHECK: The health checker can't create slotmem");
             return APR_EGENERAL;
         }