lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1055409 - in /lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache: ByteValuesCreator.java DoubleValuesCreator.java FloatValuesCreator.java IntValuesCreator.java LongValuesCreator.java ShortValuesCreator.java
Date Wed, 05 Jan 2011 11:02:25 GMT
Author: mikemccand
Date: Wed Jan  5 11:02:24 2011
New Revision: 1055409

URL: http://svn.apache.org/viewvc?rev=1055409&view=rev
Log:
LUCENE-2751: fix thread safety issue with FieldCacheImpl.get

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ByteValuesCreator.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/DoubleValuesCreator.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/FloatValuesCreator.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/IntValuesCreator.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/LongValuesCreator.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ShortValuesCreator.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ByteValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ByteValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ByteValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ByteValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -74,7 +74,7 @@ public class ByteValuesCreator extends C
   }
 
   @Override
-  public ByteValues validate(ByteValues entry, IndexReader reader) throws IOException {
+  public synchronized ByteValues validate(ByteValues entry, IndexReader reader) throws IOException
{
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/DoubleValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/DoubleValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/DoubleValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/DoubleValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -74,7 +74,7 @@ public class DoubleValuesCreator extends
   }
 
   @Override
-  public DoubleValues validate(DoubleValues entry, IndexReader reader) throws IOException
{
+  public synchronized DoubleValues validate(DoubleValues entry, IndexReader reader) throws
IOException {
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/FloatValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/FloatValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/FloatValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/FloatValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -75,7 +75,7 @@ public class FloatValuesCreator extends 
   }
 
   @Override
-  public FloatValues validate(FloatValues entry, IndexReader reader) throws IOException {
+  public synchronized FloatValues validate(FloatValues entry, IndexReader reader) throws
IOException {
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/IntValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/IntValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/IntValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/IntValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -75,7 +75,7 @@ public class IntValuesCreator extends Ca
   }
 
   @Override
-  public IntValues validate(IntValues entry, IndexReader reader) throws IOException {
+  public synchronized IntValues validate(IntValues entry, IndexReader reader) throws IOException
{
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/LongValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/LongValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/LongValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/LongValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -75,7 +75,7 @@ public class LongValuesCreator extends C
   }
 
   @Override
-  public LongValues validate(LongValues entry, IndexReader reader) throws IOException {
+  public synchronized LongValues validate(LongValues entry, IndexReader reader) throws IOException
{
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ShortValuesCreator.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ShortValuesCreator.java?rev=1055409&r1=1055408&r2=1055409&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ShortValuesCreator.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/cache/ShortValuesCreator.java
Wed Jan  5 11:02:24 2011
@@ -75,7 +75,7 @@ public class ShortValuesCreator extends 
   }
 
   @Override
-  public ShortValues validate(ShortValues entry, IndexReader reader) throws IOException {
+  public synchronized ShortValues validate(ShortValues entry, IndexReader reader) throws
IOException {
     boolean ok = false;
     
     if( hasOption(OPTION_CACHE_VALUES) ) {



Mime
View raw message