X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_update.c;h=1d9d5150d325f90a65af55ade48702c7ddce02b5;hb=c05cbd882ff8c3f9bdd1099cf5cb42ac08fae7a6;hp=108dcbb0c048a1a379e7c029c6e97d854169d0a8;hpb=401ee75cb9db4973161d9bf6e83e586087bd7769;p=rrdtool.git diff --git a/src/rrd_update.c b/src/rrd_update.c index 108dcbb..1d9d515 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -519,6 +519,7 @@ int _rrd_update( goto err_out; } + rrd_init(&rrd); if ((rrd_file = rrd_open(filename, &rrd, RRD_READWRITE)) == NULL) { goto err_free; } @@ -1927,6 +1928,8 @@ static int write_to_rras( (rrd_file, rrd, rra_idx, scratch_idx, pcdp_summary, rra_time) == -1) return -1; + + rrd_notify_row(rrd_file, rra_idx, rra_pos_new, rra_time); } rra_start += rra_def->row_cnt * ds_cnt * sizeof(rrd_value_t);