]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
OPTIM: stats: avoid the calculation of a useless link on tracking servers in maintenance
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 11 May 2014 21:10:19 +0000 (23:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 May 2014 23:02:46 +0000 (01:02 +0200)
Commit f465994198 removed the "via" link when a tracking server is in maintenance, but
still calculated an empty link that no one can use. We can safely remove it.

src/dumpstats.c

index b26ec254058c96bb74e89b0c8d37af1ca1f8ba4a..c76e115ee2b81df00c91c9c21a49f8dcf6470cfb 100644 (file)
@@ -2983,9 +2983,7 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in
                }
                else if (sv != ref) {
                        if (sv->state & SRV_MAINTAIN)
-                               chunk_appendf(&trash,
-                                             "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\"></a></td>",
-                                             ref->proxy->id, ref->id);
+                               chunk_appendf(&trash, "<td class=ac colspan=3></td>");
                        else
                                chunk_appendf(&trash,
                                              "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\">via %s/%s</a></td>",