You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Uwe Schindler <uw...@thetaphi.de> on 2011/11/22 21:22:45 UTC

RE: svn commit: r1205152 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/MMapDirectory.java

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: uwe@thetaphi.de


> -----Original Message-----
> From: uschindler@apache.org [mailto:uschindler@apache.org]
> Sent: Tuesday, November 22, 2011 9:19 PM
> To: commits@lucene.apache.org
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org