directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r948958 - /directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Date Thu, 27 May 2010 19:12:44 GMT
Author: kayyagari
Date: Thu May 27 19:12:43 2010
New Revision: 948958

URL: http://svn.apache.org/viewvc?rev=948958&view=rev
Log:
o fixed an issue when the context entry gets updated it's corresponding LDIF file
  is getting stored at a wrong location

Modified:
    directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java

Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java?rev=948958&r1=948957&r2=948958&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
(original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Thu May 27 19:12:43 2010
@@ -523,7 +523,17 @@ public class LdifPartition extends BTree
         }
 
         String rdnFileName = getFileName( entryDn.getRdn() ) + CONF_FILE_EXTN;
-        String parentDir = filePath.toString();
+        
+        String parentDir = null;
+        
+        if( entryDn.equals( suffixDn ) )
+        {
+            parentDir = suffixDirectory.getParent() + File.separator;
+        }
+        else
+        {
+            parentDir = filePath.toString();
+        }
 
         File dir = new File( parentDir );
 



Mime
View raw message