directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1418287 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Date Fri, 07 Dec 2012 12:30:10 GMT
Author: elecharny
Date: Fri Dec  7 12:30:09 2012
New Revision: 1418287

URL: http://svn.apache.org/viewvc?rev=1418287&view=rev
Log:
Forgot one commit for the previous patch

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java?rev=1418287&r1=1418286&r2=1418287&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Fri Dec  7 12:30:09 2012
@@ -326,7 +326,7 @@ public final class SchemaPartition exten
     /**
      * {@inheritDoc}
      */
-    public void delete( DeleteOperationContext deleteContext ) throws LdapException
+    public Entry delete( DeleteOperationContext deleteContext ) throws LdapException
     {
         boolean cascade = deleteContext.hasRequestControl( Cascade.OID );
 
@@ -340,10 +340,11 @@ public final class SchemaPartition exten
 
         // The SchemaObject always exist when we reach this method.
         synchronizer.delete( deleteContext, cascade );
+        Entry deletedEntry = null;
 
         try
         {
-            wrapped.delete( deleteContext );
+            deletedEntry = wrapped.delete( deleteContext );
         }
         catch ( LdapException e )
         {
@@ -352,6 +353,8 @@ public final class SchemaPartition exten
         }
 
         updateSchemaModificationAttributes( deleteContext );
+        
+        return deletedEntry;
     }
 
 



Mime
View raw message