You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/12/03 19:59:44 UTC
svn commit: r1041954 -
/lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp
Author: rmuir
Date: Fri Dec 3 18:59:44 2010
New Revision: 1041954
URL: http://svn.apache.org/viewvc?rev=1041954&view=rev
Log:
LUCENE-2787: disable atime for DirectIOLinuxDirectory
Modified:
lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp
Modified: lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp?rev=1041954&r1=1041953&r2=1041954&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp (original)
+++ lucene/dev/trunk/lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp Fri Dec 3 18:59:44 2010
@@ -97,9 +97,9 @@ JNIEXPORT jobject JNICALL Java_org_apach
fname = (char *) env->GetStringUTFChars(filename, NULL);
if (readOnly) {
- fd = open(fname, O_RDONLY | O_DIRECT);
+ fd = open(fname, O_RDONLY | O_DIRECT | O_NOATIME);
} else {
- fd = open(fname, O_RDWR | O_CREAT | O_DIRECT, 0666);
+ fd = open(fname, O_RDWR | O_CREAT | O_DIRECT | O_NOATIME, 0666);
}
//printf("open %s -> %d; ro %d\n", fname, fd, readOnly); fflush(stdout);