X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_resize.c;fp=src%2Frrd_resize.c;h=a281bc089f2f5f3713fea10e3ce7bb5dedf42584;hp=56d762617a391060dc162ebf28d8cc9265b3af37;hb=8d278938aef5adefa2915dd446abc028cc764550;hpb=46d2e915a9f864304ee107f9ea35a60b01d3e378 diff --git a/src/rrd_resize.c b/src/rrd_resize.c index 56d7626..a281bc0 100644 --- a/src/rrd_resize.c +++ b/src/rrd_resize.c @@ -60,7 +60,7 @@ int rrd_resize( rrd_free(&rrdold); return (-1); } - if (LockRRD(rrd_file->fd) != 0) { + if (rrd_lock(rrd_file) != 0) { rrd_set_error("could not lock original RRD"); rrd_free(&rrdold); rrd_close(rrd_file); @@ -98,7 +98,7 @@ int rrd_resize( rrd_free(&rrdnew); return (-1); } - if (LockRRD(rrd_out_file->fd) != 0) { + if (rrd_lock(rrd_out_file) != 0) { rrd_set_error("could not lock new RRD"); rrd_free(&rrdold); rrd_close(rrd_file);