incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1004007 - /sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
Date Sun, 03 Oct 2010 17:34:34 GMT
Author: cziegeler
Date: Sun Oct  3 17:34:33 2010
New Revision: 1004007

URL: http://svn.apache.org/viewvc?rev=1004007&view=rev
Log:
Save only intermediate nodes on path creation.

Modified:
    sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java

Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java?rev=1004007&r1=1004006&r2=1004007&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
(original)
+++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
Sun Oct  3 17:34:33 2010
@@ -213,6 +213,7 @@ public abstract class AbstractRepository
         this.writeRootNode = this.createPath(this.writerSession.getRootNode(),
                 this.repositoryPath.substring(1),
                 EventHelper.NODETYPE_ORDERED_FOLDER);
+        this.writerSession.save();
     }
 
     /**
@@ -388,7 +389,6 @@ public abstract class AbstractRepository
             }
             if ( !node.hasNode(relativePath) ) {
                 node.addNode(relativePath, nodeType);
-                node.getSession().save();
             }
             return node.getNode(relativePath);
         }



Mime
View raw message