1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Add in hot-standby balancer member. If all other members

are disabled or not-usable, ONLY THEN will the hot
standby's be used.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2006-07-11 20:39:38 +00:00
parent de659cbed0
commit 0b80babf0b
3 changed files with 87 additions and 11 deletions

View File

@@ -213,8 +213,14 @@ static const char *set_worker_param(apr_pool_t *p,
else
worker->status &= ~PROXY_WORKER_IN_ERROR;
}
else if (*v == 'H' || *v == 'h') {
if (mode)
worker->status |= PROXY_WORKER_HOT_STANDBY;
else
worker->status &= ~PROXY_WORKER_HOT_STANDBY;
}
else {
return "Unknow status parameter option";
return "Unknown status parameter option";
}
}
}