@cryptotaxi247 / netdata-1 / commits / 7c568ee6f

update the fast searching hashes when loading the alarm log

Costa Tsaousis committed Oct 17, 2016 at 10:54 UTC 7c568ee6fafca386731e9ba05b3242982cd16c5a
1 file changed +2
src/health.c
+2
@@ -247,9 +247,11 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
247
248 if(unlikely(ae->name)) freez(ae->name);
249 ae->name = strdupz(pointers[13]);
250 + ae->hash_name = simple_hash(ae->name);
251
252 if(unlikely(ae->chart)) freez(ae->chart);
253 ae->chart = strdupz(pointers[14]);
254 + ae->hash_chart = simple_hash(ae->chart);
255
256 if(unlikely(ae->family)) freez(ae->family);
257 ae->family = strdupz(pointers[15]);