- Remove unnecessary msync() which impact performance a lot

- Bump PORTREVISION

PR:		ports/125056
Submitted by:	Marcus Reid <marcus at blazingdot.com>
Approved by:	maintainer
This commit is contained in:
Rong-En Fan
2008-06-30 05:52:25 +00:00
parent f6ae7b0cc9
commit 8c81b84127
2 changed files with 13 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
PORTNAME= rrdtool
PORTVERSION= 1.3.0
PORTREVISION= 1
CATEGORIES= databases graphics
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/

View File

@@ -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));