BUG/MINOR: stats: fix show stats field ctx for servers

In ("MINOR: stats: introduce stats field ctx"), we forgot
to apply the patch to servers.

This prevents "BUG/MINOR: stats: fix show stat json buffer limitation"
from working with servers dump.

We're adding the missing part related to servers dump.

This commit should be backported with the aforementioned commits.
This commit is contained in:
Aurelien DARRAGON 2023-02-02 18:13:30 +01:00 committed by Christopher Faulet
parent 9b07d4fecd
commit 28a23617ce
1 changed files with 3 additions and 0 deletions

View File

@ -3311,7 +3311,10 @@ int stats_dump_proxy_to_buffer(struct stconn *sc, struct htx *htx,
if (stats_dump_sv_stats(sc, px, sv)) {
if (!stats_putchk(rep, htx))
goto full;
if (ctx->field)
goto more;
}
current_field = 0;
} /* for sv */
ctx->px_st = STAT_PX_ST_BE;