directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r947475 - /directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
Date Sun, 23 May 2010 19:59:25 GMT
Author: seelmann
Date: Sun May 23 19:59:24 2010
New Revision: 947475

URL: http://svn.apache.org/viewvc?rev=947475&view=rev
Log:
Synchronize remaining write methods

Modified:
    directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java

Modified: directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java?rev=947475&r1=947474&r2=947475&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
(original)
+++ directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
Sun May 23 19:59:24 2010
@@ -912,7 +912,7 @@ public abstract class AbstractStore<E, I
     /**
      * {@inheritDoc}
      */
-    public void modify( DN dn, ModificationOperation modOp, Entry mods ) throws Exception
+    public synchronized void modify( DN dn, ModificationOperation modOp, Entry mods ) throws
Exception
     {
         if ( mods instanceof ClonedServerEntry )
         {
@@ -958,7 +958,7 @@ public abstract class AbstractStore<E, I
     /**
      * {@inheritDoc}
      */
-    public void modify( DN dn, List<Modification> mods ) throws Exception
+    public synchronized void modify( DN dn, List<Modification> mods ) throws Exception
     {
         ID id = getEntryId( dn );
         Entry entry = master.get( id );
@@ -1066,7 +1066,7 @@ public abstract class AbstractStore<E, I
      * @throws Exception if there are any errors propagating the name changes
      */
     @SuppressWarnings("unchecked")
-    public void rename( DN dn, RDN newRdn, boolean deleteOldRdn ) throws Exception
+    public synchronized void rename( DN dn, RDN newRdn, boolean deleteOldRdn ) throws Exception
     {
         ID id = getEntryId( dn );
         Entry entry = lookup( id );
@@ -1186,7 +1186,7 @@ public abstract class AbstractStore<E, I
     }
 
 
-    public void move( DN oldChildDn, DN newParentDn, RDN newRdn, boolean deleteOldRdn ) throws
Exception
+    public synchronized void move( DN oldChildDn, DN newParentDn, RDN newRdn, boolean deleteOldRdn
) throws Exception
     {
         ID childId = getEntryId( oldChildDn );
         rename( oldChildDn, newRdn, deleteOldRdn );
@@ -1199,7 +1199,7 @@ public abstract class AbstractStore<E, I
     }
 
 
-    public void move( DN oldChildDn, DN newParentDn ) throws Exception
+    public synchronized void move( DN oldChildDn, DN newParentDn ) throws Exception
     {
         ID childId = getEntryId( oldChildDn );
         move( oldChildDn, childId, newParentDn, oldChildDn.getRdn() );



Mime
View raw message