diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-10 02:33:07 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-10 02:33:07 +0300 |
commit | cd39ffd3753f705d3edc290df0f2856df9f581f7 (patch) | |
tree | 5b659b926ab82af9b686efb2e26c3efd29e100c7 /src/rrd.c | |
parent | 308c6c24b914e0f22486e4c123a8089564a47d00 (diff) |
added RRDCALC management; preparation for expression evaluation
Diffstat (limited to 'src/rrd.c')
-rw-r--r-- | src/rrd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -531,6 +531,8 @@ RRDSET *rrdset_create(const char *type, const char *id, const char *name, const rrdset_index_add(&localhost, st); + rrdsetcalc_link_matching(st); + pthread_rwlock_unlock(&localhost.rrdset_root_rwlock); return(st); @@ -740,6 +742,9 @@ void rrdset_free_all(void) while(st->variables) rrdsetvar_free(st->variables); + while(st->calculations) + rrdsetcalc_unlink(st->calculations); + while(st->dimensions) rrddim_free(st, st->dimensions); |