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.tokkee.org/?a=commitdiff_plain;h=e981633496ae2f1dce5aa30b9ad02367ecb17257;p=rrdtool-all.git no reason to die when posixfadvise is not sucessful git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1204 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c index 70e0ab9f..6a3cf34a 100644 --- a/program/src/rrd_open.c +++ b/program/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 /*