@cryptotaxi247 / netdata-1 / commits / dfc1d14a1

Replace rrdset_is_obsolete & rrdset_isnot_obsolete (#16351)

replace is_/isnot_obsolete

Emmanuel Vasilakis committed Nov 7, 2023 at 12:04 UTC dfc1d14a17011a717f5882822a3820200fed6f0a
1 file changed +2 -2
collectors/statsd.plugin/statsd.c
+2 -2
@@ -484,7 +484,7 @@ static inline void metric_update_counters_and_obsoletion(STATSD_METRIC *m) {
484 m->count++;
485 m->last_collected = now_realtime_sec();
486 if (m->st && unlikely(rrdset_flag_check(m->st, RRDSET_FLAG_OBSOLETE))) {
487 - rrdset_isnot_obsolete(m->st);
487 + rrdset_isnot_obsolete___safe_from_collector_thread(m->st);
488 m->options &= ~STATSD_METRIC_OPTION_OBSOLETE;
489 }
490 }
@@ -1870,7 +1870,7 @@ static inline void metric_check_obsoletion(STATSD_METRIC *m) {
1870 !rrdset_flag_check(m->st, RRDSET_FLAG_OBSOLETE) &&
1871 m->options & STATSD_METRIC_OPTION_PRIVATE_CHART_ENABLED &&
1872 m->last_collected + statsd.set_obsolete_after < now_realtime_sec()) {
1873 - rrdset_is_obsolete(m->st);
1873 + rrdset_is_obsolete___safe_from_collector_thread(m->st);
1874 m->options |= STATSD_METRIC_OPTION_OBSOLETE;
1875 }
1876 }