jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r576813 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java
Date Tue, 18 Sep 2007 10:03:09 GMT
Author: mreutegg
Date: Tue Sep 18 03:03:08 2007
New Revision: 576813

URL: http://svn.apache.org/viewvc?rev=576813&view=rev
Log:
JCR-905: Clustering: race condition may cause duplicate entries in search index

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java?rev=576813&r1=576812&r2=576813&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SearchManager.java
Tue Sep 18 03:03:08 2007
@@ -402,6 +402,10 @@
                 long type = e.getType();
                 if (type == Event.NODE_ADDED) {
                     addedNodes.put(e.getChildId(), e);
+                    // quick'n dirty fix for JCR-905
+                    if (e.isExternal()) {
+                        removedNodes.add(e.getChildId());
+                    }
                 } else if (type == Event.NODE_REMOVED) {
                     removedNodes.add(e.getChildId());
                 } else {



Mime
View raw message