This one should have also been in 3.5 to work around the SIGSEGVs. But with Mike's patch checking that IndexReaders are open, this should be not so important.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Tuesday, November 22, 2011 9:19 PM > To: [email protected] > Subject: svn commit: r1205152 - > /lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.j > ava > > Author: uschindler > Date: Tue Nov 22 20:18:43 2011 > New Revision: 1205152 > > URL: http://svn.apache.org/viewvc?rev=1205152&view=rev > Log: > LUCENE-3200: Add extra safety to MMapDirectory (as it could still use > unmapped curBuf)! > > Modified: > > lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.ja > va > > Modified: > lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.ja > va > URL: > http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lu > cene/store/MMapDirectory.java?rev=1205152&r1=1205151&r2=1205152&vie > w=diff > ================================================================ > ============== > --- > lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.ja > va (original) > +++ > lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.ja > va Tue Nov 22 20:18:43 2011 > @@ -412,6 +412,7 @@ public class MMapDirectory extends FSDir > > @Override > public void close() throws IOException { > + curBuf = null; curBufIndex = 0; > try { > if (isClone || buffers == null) return; > for (int bufNr = 0; bufNr < buffers.length; bufNr++) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
