jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r801241 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Wed, 05 Aug 2009 14:37:09 GMT
Author: mreutegg
Date: Wed Aug  5 14:37:08 2009
New Revision: 801241

URL: http://svn.apache.org/viewvc?rev=801241&view=rev
Log:
JCR-2242: Unsynchronized access to MultiIndex#indexes

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?rev=801241&r1=801240&r2=801241&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Wed Aug  5 14:37:08 2009
@@ -715,7 +715,7 @@
      * @return an <code>IndexReader</code>.
      * @throws IOException if an error occurs constructing the <code>IndexReader</code>.
      */
-    public CachingMultiIndexReader getIndexReader(boolean initCache) throws IOException {
+    public synchronized CachingMultiIndexReader getIndexReader(boolean initCache) throws
IOException {
         synchronized (updateMonitor) {
             if (multiReader != null) {
                 multiReader.acquire();



Mime
View raw message