incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1368357 - /sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java
Date Thu, 02 Aug 2012 06:21:32 GMT
Author: cziegeler
Date: Thu Aug  2 06:21:32 2012
New Revision: 1368357

URL: http://svn.apache.org/viewvc?rev=1368357&view=rev
Log:
New MongoDB resource provider

Modified:
    sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java

Modified: sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java?rev=1368357&r1=1368356&r2=1368357&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java
(original)
+++ sling/trunk/contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java
Thu Aug  2 06:21:32 2012
@@ -114,6 +114,11 @@ public class MongoDBResourceProvider imp
     }
 
     /**
+     * TODO - we should handle delete different and not put all child resources into the
+     * deleted set.
+     * Instead when getting resources, the parents of the resource should be checked
+     * first.
+     * This minimizes concurrency issues.
      * @see org.apache.sling.api.resource.ModifyingResourceProvider#delete(org.apache.sling.api.resource.ResourceResolver,
java.lang.String)
      */
     public void delete(final ResourceResolver resolver, final String path)
@@ -235,6 +240,7 @@ public class MongoDBResourceProvider imp
     }
 
     /**
+     * TODO - we have to check for deleted and added resources
      * @see org.apache.sling.api.resource.ResourceProvider#listChildren(org.apache.sling.api.resource.Resource)
      */
     public Iterator<Resource> listChildren(final Resource parent) {



Mime
View raw message