You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2018/08/26 20:48:39 UTC

svn commit: r1839248 - /httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Author: jailletc36
Date: Sun Aug 26 20:48:39 2018
New Revision: 1839248

URL: http://svn.apache.org/viewvc?rev=1839248&view=rev
Log:
Revert r1839247

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c?rev=1839248&r1=1839247&r2=1839248&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c Sun Aug 26 20:48:39 2018
@@ -310,7 +310,7 @@ static apr_status_t hm_file_update_stat(
 
                 /* Update seen time according to the last file modification */
                 apr_table_clear(hbt);
-                qs_to_table(t, hbt, pool);
+                qs_to_table(apr_pstrdup(pool, t), hbt, pool);
                 if ((val = apr_table_get(hbt, "busy"))) {
                     node.busy = atoi(val);
                 }
@@ -624,7 +624,9 @@ static apr_status_t hm_watchdog_callback
             /* 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;