CLEANUP: stats: update the trash chunk where it's used
When integrating the number of warnings in "show info" in 2.8 with commit
3c4a297d2
("MINOR: stats: report the total number of warnings issued"),
the update of the trash buffer used by the Tainted flag got displaced
lower. There's no harm for now util someone adds a new metric requiring
a call to chunk_newstr() and gets both values merged. Let's move the
call to its location now.
This commit is contained in:
parent
cb76030356
commit
52fd879953
|
@ -4745,9 +4745,9 @@ int stats_fill_info(struct field *info, int len, uint flags)
|
|||
info[INF_CUM_LOG_MSGS] = mkf_u32(FN_COUNTER, cum_log_messages);
|
||||
|
||||
info[INF_TAINTED] = mkf_str(FO_STATUS, chunk_newstr(out));
|
||||
chunk_appendf(out, "%#x", get_tainted());
|
||||
info[INF_WARNINGS] = mkf_u32(FN_COUNTER, HA_ATOMIC_LOAD(&tot_warnings));
|
||||
info[INF_MAXCONN_REACHED] = mkf_u32(FN_COUNTER, HA_ATOMIC_LOAD(&maxconn_reached));
|
||||
chunk_appendf(out, "%#x", get_tainted());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue