aboutsummaryrefslogtreecommitdiffstats
path: root/databases/rrdtool
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-06-30 13:52:25 +0800
committerrafan <rafan@FreeBSD.org>2008-06-30 13:52:25 +0800
commit16047522862aed63ae9fd1dd3a70cf238fbcf269 (patch)
tree9de2ef4689c2b52bf8e88393ea8ab304449c4bec /databases/rrdtool
parentc83f5c0abf129a006c04a30be016fd4c93860332 (diff)
downloadfreebsd-ports-gnome-16047522862aed63ae9fd1dd3a70cf238fbcf269.tar.gz
freebsd-ports-gnome-16047522862aed63ae9fd1dd3a70cf238fbcf269.tar.zst
freebsd-ports-gnome-16047522862aed63ae9fd1dd3a70cf238fbcf269.zip
- Remove unnecessary msync() which impact performance a lot
- Bump PORTREVISION PR: ports/125056 Submitted by: Marcus Reid <marcus at blazingdot.com> Approved by: maintainer
Diffstat (limited to 'databases/rrdtool')
-rw-r--r--databases/rrdtool/Makefile1
-rw-r--r--databases/rrdtool/files/patch-src-rrd_open.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index 8fbc5a49e27d..b471f0c28993 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -7,6 +7,7 @@
PORTNAME= rrdtool
PORTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= databases graphics
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/
diff --git a/databases/rrdtool/files/patch-src-rrd_open.c b/databases/rrdtool/files/patch-src-rrd_open.c
new file mode 100644
index 000000000000..af5bc71a9e5b
--- /dev/null
+++ b/databases/rrdtool/files/patch-src-rrd_open.c
@@ -0,0 +1,12 @@
+--- src/rrd_open.c.orig 2008-06-30 12:52:29.000000000 +0800
++++ src/rrd_open.c 2008-06-30 12:53:14.000000000 +0800
+@@ -388,9 +388,6 @@
+ int ret;
+
+ #ifdef HAVE_MMAP
+- ret = msync(rrd_file->file_start, rrd_file->file_len, MS_ASYNC);
+- if (ret != 0)
+- rrd_set_error("msync rrd_file: %s", rrd_strerror(errno));
+ ret = munmap(rrd_file->file_start, rrd_file->file_len);
+ if (ret != 0)
+ rrd_set_error("munmap rrd_file: %s", rrd_strerror(errno));