directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r895041 - /directory/apacheds/branches/apacheds-schema/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Date Fri, 01 Jan 2010 17:45:25 GMT
Author: kayyagari
Date: Fri Jan  1 17:45:25 2010
New Revision: 895041

URL: http://svn.apache.org/viewvc?rev=895041&view=rev
Log:
close the LdifReader as soon as the parsing is done

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

Modified: directory/apacheds/branches/apacheds-schema/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java?rev=895041&r1=895040&r2=895041&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
(original)
+++ directory/apacheds/branches/apacheds-schema/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Fri Jan  1 17:45:25 2010
@@ -472,6 +472,7 @@
             {
                 LOG.debug( "parsing ldif file {}", entry.getName() );
                 List<LdifEntry> ldifEntries = ldifReader.parseLdifFile( entry.getAbsolutePath()
);
+                ldifReader.close();
                 
                 if ( ( ldifEntries != null ) && !ldifEntries.isEmpty() )
                 {
@@ -496,7 +497,6 @@
                 }
             }
             
-            ldifReader.close();
         }
         else
         {



Mime
View raw message