diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-02-06 12:43:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 12:43:38 +0200 |
commit | d53ac630f8c6abfd7f9b7bf9fd4029a164ca775f (patch) | |
tree | 8faa922024073e41e99cecf7c1d791ef3ce72368 /streaming/rrdpush.c | |
parent | b634a0730fadeed61c71b2fd62269d5a46d84168 (diff) |
replication to streaming transition when there are gaps (#14434)
fix https://github.com/netdata/netdata/issues/14432
Diffstat (limited to 'streaming/rrdpush.c')
-rw-r--r-- | streaming/rrdpush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c index a7b2a80643..256fa82821 100644 --- a/streaming/rrdpush.c +++ b/streaming/rrdpush.c @@ -321,12 +321,12 @@ static inline bool rrdpush_send_chart_definition(BUFFER *wb, RRDSET *st) { } // sends the current chart dimensions -static void rrdpush_send_chart_metrics(BUFFER *wb, RRDSET *st, struct sender_state *s, RRDSET_FLAGS flags) { +static void rrdpush_send_chart_metrics(BUFFER *wb, RRDSET *st, struct sender_state *s __maybe_unused, RRDSET_FLAGS flags) { buffer_fast_strcat(wb, "BEGIN \"", 7); buffer_fast_strcat(wb, rrdset_id(st), string_strlen(st->id)); buffer_fast_strcat(wb, "\" ", 2); - if(stream_has_capability(s, STREAM_CAP_REPLICATION) || st->last_collected_time.tv_sec > st->upstream_resync_time_s) + if(st->last_collected_time.tv_sec > st->upstream_resync_time_s) buffer_print_llu(wb, st->usec_since_last_update); else buffer_fast_strcat(wb, "0", 1); |