X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_open.c;h=6a3cf34a8286fc6cc39b5f124f04a543a95b4399;hp=70e0ab9f5d6b38dd3b4339a438943f848e8c25d1;hb=f1a53d6f5926d43a74c190ce6e13edcadfd61635;hpb=1b8f812fbf8d14bad0fcf9749ac71f640bda2868 diff --git a/src/rrd_open.c b/src/rrd_open.c index 70e0ab9..6a3cf34 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -140,11 +140,7 @@ rrd_file_t *rrd_open( When we stop reading, it is highly unlikely that we start up again. In this manner we actually save time and diskaccess (and buffer cache). Thanks to Dave Plonka for the Idea of using POSIX_FADV_RANDOM here. */ - if (0 != posix_fadvise(rrd_file->fd, 0, 0, POSIX_FADV_RANDOM)) { - rrd_set_error("setting POSIX_FADV_RANDOM on '%s': %s", file_name, - rrd_strerror(errno)); - goto out_close; - } + posix_fadvise(rrd_file->fd, 0, 0, POSIX_FADV_RANDOM); #endif /*