summaryrefslogtreecommitdiffstats
path: root/modules/cluster
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2018-08-26 22:41:13 +0200
committerChristophe Jaillet <jailletc36@apache.org>2018-08-26 22:41:13 +0200
commit090c518871a6da3f1f3bfe441aadf2758eb078a8 (patch)
tree247204287e040e7d2a844df140300fa0aacb87ba /modules/cluster
parentAdd missing space (diff)
downloadapache2-090c518871a6da3f1f3bfe441aadf2758eb078a8.tar.xz
apache2-090c518871a6da3f1f3bfe441aadf2758eb078a8.zip
Axe an old and apparently out-dated comment.
There is a typo in the comment. HN_UPDATE_SEC has been renamed HM_UPDATE_SEC. The TODO seems to have been taken into account in r759862. Reverted in r1839248 and re-committed without un-expexted content in r1839249 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1839247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cluster')
-rw-r--r--modules/cluster/mod_heartmonitor.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c
index 965fef5899..2057e58f1e 100644
--- a/modules/cluster/mod_heartmonitor.c
+++ b/modules/cluster/mod_heartmonitor.c
@@ -310,7 +310,7 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_
/* Update seen time according to the last file modification */
apr_table_clear(hbt);
- qs_to_table(apr_pstrdup(pool, t), hbt, pool);
+ qs_to_table(t, hbt, pool);
if ((val = apr_table_get(hbt, "busy"))) {
node.busy = atoi(val);
}
@@ -624,9 +624,7 @@ static apr_status_t hm_watchdog_callback(int state, void *data,
/* store in the slotmem or in the file depending on configuration */
hm_update_stats(ctx, pool);
cur = now = apr_time_sec(apr_time_now());
- /* TODO: Insted HN_UPDATE_SEC use
- * the ctx->interval
- */
+
while ((now - cur) < apr_time_sec(ctx->interval)) {
int n;
apr_status_t rc;