diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-11-03 12:13:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 12:13:48 +0200 |
commit | a19795e85fd1d026171661c7f97bde8f9f7d0b1a (patch) | |
tree | 080a060e19fcb3a248514cff01e5749b8fad895c /database/rrdsetvar.c | |
parent | cd28c686158840afb020d6b984aa9f96ac656742 (diff) |
do not resend charts upstream when chart variables are being updated (#13946)
* do not resend charts upstream when chart variables are being updated
* re-stream archived hosts that are now being collected
Diffstat (limited to 'database/rrdsetvar.c')
-rw-r--r-- | database/rrdsetvar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/rrdsetvar.c b/database/rrdsetvar.c index b1800fc7a6..22cf8a1f01 100644 --- a/database/rrdsetvar.c +++ b/database/rrdsetvar.c @@ -268,14 +268,14 @@ void rrdsetvar_custom_chart_variable_set(RRDSET *st, const RRDSETVAR_ACQUIRED *r NETDATA_DOUBLE *v = rs->value; if(*v != value) { *v = value; - - // mark the chart to be sent upstream - rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_EXPOSED); + rrdset_flag_set(st, RRDSET_FLAG_UPSTREAM_SEND_VARIABLES); } } } void rrdsetvar_print_to_streaming_custom_chart_variables(RRDSET *st, BUFFER *wb) { + rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_SEND_VARIABLES); + // send the chart local custom variables RRDSETVAR *rs; dfe_start_read(st->rrdsetvar_root_index, rs) { |