jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r410647 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Wed, 31 May 2006 19:44:30 GMT
Author: mreutegg
Date: Wed May 31 12:44:30 2006
New Revision: 410647

URL: http://svn.apache.org/viewvc?rev=410647&view=rev
Log:
JCR-448: Moving a node while index is merged leads to inconsistent index

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

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?rev=410647&r1=410646&r2=410647&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Wed May 31 12:44:30 2006
@@ -526,8 +526,9 @@
             // delete documents in index
             for (Iterator it = deleted.iterator(); it.hasNext();) {
                 Term id = (Term) it.next();
-                executeAndLog(new DeleteNode(getTransactionId(), id.text()));
+                index.removeDocument(id);
             }
+            index.commit();
 
             executeAndLog(new Commit(getTransactionId()));
         } finally {



Mime
View raw message