summaryrefslogtreecommitdiffstats
path: root/modules/proxy/balancers/mod_lbmethod_bybusyness.c
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2009-04-27 17:02:40 +0200
committerJim Jagielski <jim@apache.org>2009-04-27 17:02:40 +0200
commit7e145e73125bf8ae2d736a60beaa376629954837 (patch)
tree44a61094183f3a183395a7e0af44a79214fb00ff /modules/proxy/balancers/mod_lbmethod_bybusyness.c
parentdon't use literal '100' for HTTP_CONTINUE (searchability) (diff)
downloadapache2-7e145e73125bf8ae2d736a60beaa376629954837.tar.xz
apache2-7e145e73125bf8ae2d736a60beaa376629954837.zip
Fold in initial template for methods to be able to
reset (initialize) and "age" their data, useful when adding new workers, or when workers come back into the fold.... Logic and code to come in a bit :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@769020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/balancers/mod_lbmethod_bybusyness.c')
-rw-r--r--modules/proxy/balancers/mod_lbmethod_bybusyness.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/proxy/balancers/mod_lbmethod_bybusyness.c b/modules/proxy/balancers/mod_lbmethod_bybusyness.c
index 5bdeef7e7d..0e5ebc87a1 100644
--- a/modules/proxy/balancers/mod_lbmethod_bybusyness.c
+++ b/modules/proxy/balancers/mod_lbmethod_bybusyness.c
@@ -105,10 +105,20 @@ static proxy_worker *find_best_bybusyness(proxy_balancer *balancer,
}
+static apr_status_t reset(proxy_balancer *balancer, request_rec *r) {
+ return APR_SUCCESS;
+}
+
+static apr_status_t age(proxy_balancer *balancer, request_rec *r) {
+ return APR_SUCCESS;
+}
+
static const proxy_balancer_method bybusyness =
{
"bybusyness",
&find_best_bybusyness,
+ &reset,
+ &age,
NULL
};