jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r646382 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexFormatVersion.java
Date Wed, 09 Apr 2008 14:38:33 GMT
Author: mreutegg
Date: Wed Apr  9 07:38:32 2008
New Revision: 646382

URL: http://svn.apache.org/viewvc?rev=646382&view=rev
Log:
JCR-1104: JSR 283 support (work in progress)
- index format version not correctly determined

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexFormatVersion.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexFormatVersion.java?rev=646382&r1=646381&r2=646382&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexFormatVersion.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexFormatVersion.java
Wed Apr  9 07:38:32 2008
@@ -117,13 +117,13 @@
             TermEnum terms = reader.terms(
                     new Term(FieldNames.PROPERTIES, ""));
             try {
-                if (terms.next() && terms.term().field() == FieldNames.PROPERTIES)
{
+                do {
                     tp.seek(terms);
                     if (tp.next()) {
                         tp.nextPosition();
                         return tp.isPayloadAvailable();
                     }
-                }
+                } while (terms.next() && terms.term().field() == FieldNames.PROPERTIES);
             } finally {
                 terms.close();
             }



Mime
View raw message