@cryptotaxi247 / netdata-1 / commits / 13ede842c

call spinlock_init() when initializing rrdlabels spinlock (#20206)

Costa Tsaousis committed Apr 29, 2025 at 13:30 UTC 13ede842cb7f67db31b4b4e901d5ee17176805ae
1 file changed +1
src/database/rrdlabels.c
+1
@@ -81,6 +81,7 @@ __attribute__((constructor)) void initialize_label_stats(void) {
81 RRDLABELS *rrdlabels_create(void)
82 {
83 RRDLABELS *labels = callocz(1, sizeof(*labels));
84 + spinlock_init(&labels->spinlock);
85 RRDLABELS_MEMORY_DELTA(&dictionary_stats_category_rrdlabels, 0, sizeof(RRDLABELS));
86 return labels;
87 }