jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r520911 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocId.java
Date Wed, 21 Mar 2007 15:16:42 GMT
Author: mreutegg
Date: Wed Mar 21 08:16:40 2007
New Revision: 520911

URL: http://svn.apache.org/viewvc?view=rev&rev=520911
Log:
JCR-807: UUIDDocId should check IndexReader using equals()

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocId.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocId.java?view=diff&rev=520911&r1=520910&r2=520911
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocId.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocId.java
Wed Mar 21 08:16:40 2007
@@ -204,7 +204,7 @@
          */
         int getDocumentNumber(IndexReader reader) throws IOException {
             synchronized (this) {
-                if (this.reader != null && this.reader.get() == reader) {
+                if (this.reader != null && reader.equals(this.reader.get())) {
                     return docNumber;
                 }
             }



Mime
View raw message