jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r509944 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
Date Wed, 21 Feb 2007 09:24:44 GMT
Author: mreutegg
Date: Wed Feb 21 01:24:42 2007
New Revision: 509944

URL: http://svn.apache.org/viewvc?view=rev&rev=509944
Log:
JCR-758: QueryResult's RowIterator.getSize returned the wrong size of the results after I
implemented my own AccessManager

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java?view=diff&rev=509944&r1=509943&r2=509944
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
Wed Feb 21 01:24:42 2007
@@ -256,6 +256,8 @@
                 try {
                     if (accessMgr.isGranted(id, AccessManager.READ)) {
                         resultNodes.add(new ScoreNode(id, result.score(i)));
+                    } else {
+                        invalid++;
                     }
                 } catch (ItemNotFoundException e) {
                     // has been deleted meanwhile



Mime
View raw message