diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2021-11-11 12:43:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 12:43:50 +0200 |
commit | 51869f7a0677dc1e6e3a9ff16aedc78b67e59739 (patch) | |
tree | 3dd85d9c2607e61a1c39173aad5f5ac167508302 /database/rrdset.c | |
parent | c1afb3922de4f700fcca978ac82bc4e92a806606 (diff) |
Skip sending hidden dimensions via ACLK (#11770)
* Do not send hidden dimensions to the cloud
* Cleanup dimension_delete table from stale entries
Diffstat (limited to 'database/rrdset.c')
-rw-r--r-- | database/rrdset.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/database/rrdset.c b/database/rrdset.c index 75696d8f85..25f0bcb7dc 100644 --- a/database/rrdset.c +++ b/database/rrdset.c @@ -1807,12 +1807,14 @@ after_second_database_work: continue; #if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL) - int live = ((mark - rd->last_collected_time.tv_sec) < (RRDSET_MINIMUM_LIVE_COUNT * rd->update_every)); - if (unlikely(live != rd->state->aclk_live_status)) { - if (likely(rrdset_flag_check(st, RRDSET_FLAG_ACLK))) { - if (likely(!queue_dimension_to_aclk(rd))) { - rd->state->aclk_live_status = live; - rrddim_flag_set(rd, RRDDIM_FLAG_ACLK); + if (!rrddim_flag_check(rd, RRDDIM_FLAG_HIDDEN)) { + int live = ((mark - rd->last_collected_time.tv_sec) < (RRDSET_MINIMUM_LIVE_COUNT * rd->update_every)); + if (unlikely(live != rd->state->aclk_live_status)) { + if (likely(rrdset_flag_check(st, RRDSET_FLAG_ACLK))) { + if (likely(!queue_dimension_to_aclk(rd))) { + rd->state->aclk_live_status = live; + rrddim_flag_set(rd, RRDDIM_FLAG_ACLK); + } } } } |