]> granicus.if.org Git - apache/commitdiff
Enabling a worker via health-check also moves them out of
authorJim Jagielski <jim@apache.org>
Wed, 3 Feb 2016 14:33:43 +0000 (14:33 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 3 Feb 2016 14:33:43 +0000 (14:33 +0000)
ERROR more (which may have been set via the static
"health" check done via mod_proxy).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728326 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index 77f2c6dce8112d87e603f717d4aa1b1a5c162835..a25c6bbc4897cdd87a00e06d4682c021978381cd 100644 (file)
@@ -824,6 +824,7 @@ static void *hc_check(apr_thread_t *thread, void *b)
             worker->s->pcount += 1;
             if (worker->s->pcount >= worker->s->passes) {
                 ap_proxy_set_wstatus(PROXY_WORKER_HC_FAIL_FLAG, 0, worker);
+                ap_proxy_set_wstatus(PROXY_WORKER_IN_ERROR_FLAG, 0, worker);
                 worker->s->pcount = 0;
                 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, APLOGNO(03302)
                              "%sHealth check ENABLING %s", (thread ? "Threaded " : ""),