jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r577858 - /jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
Date Thu, 20 Sep 2007 18:36:07 GMT
Author: jukka
Date: Thu Sep 20 11:36:07 2007
New Revision: 577858

URL: http://svn.apache.org/viewvc?rev=577858&view=rev
Log:
1.3: Merged revision 568903 (JCR-1078)

Modified:
    jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java

Modified: jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java?rev=577858&r1=577857&r2=577858&view=diff
==============================================================================
--- jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
(original)
+++ jackrabbit/branches/1.3/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
Thu Sep 20 11:36:07 2007
@@ -1120,13 +1120,13 @@
     private static void write(Record record, ChangeLog changeLog, EventStateCollection esc)
             throws JournalException {
 
-        Iterator addedStates = changeLog.addedStates();
-        while (addedStates.hasNext()) {
-            ItemState state = (ItemState) addedStates.next();
+        Iterator deletedStates = changeLog.deletedStates();
+        while (deletedStates.hasNext()) {
+            ItemState state = (ItemState) deletedStates.next();
             if (state.isNode()) {
-                write(record, NodeAddedOperation.create((NodeState) state));
+                write(record, NodeDeletedOperation.create((NodeState) state));
             } else {
-                write(record, PropertyAddedOperation.create((PropertyState) state));
+                write(record, PropertyDeletedOperation.create((PropertyState) state));
             }
         }
         Iterator modifiedStates = changeLog.modifiedStates();
@@ -1138,13 +1138,13 @@
                 write(record, PropertyModifiedOperation.create((PropertyState) state));
             }
         }
-        Iterator deletedStates = changeLog.deletedStates();
-        while (deletedStates.hasNext()) {
-            ItemState state = (ItemState) deletedStates.next();
+        Iterator addedStates = changeLog.addedStates();
+        while (addedStates.hasNext()) {
+            ItemState state = (ItemState) addedStates.next();
             if (state.isNode()) {
-                write(record, NodeDeletedOperation.create((NodeState) state));
+                write(record, NodeAddedOperation.create((NodeState) state));
             } else {
-                write(record, PropertyDeletedOperation.create((PropertyState) state));
+                write(record, PropertyAddedOperation.create((PropertyState) state));
             }
         }
 



Mime
View raw message