From: oetiker Date: Sun, 16 Sep 2007 15:35:11 +0000 (+0000) Subject: no reason to die when posixfadvise is not sucessful X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=f1a53d6f5926d43a74c190ce6e13edcadfd61635 no reason to die when posixfadvise is not sucessful git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1204 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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 /*