directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1001385 - /directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
Date Sun, 26 Sep 2010 08:09:50 GMT
Author: felixk
Date: Sun Sep 26 08:09:50 2010
New Revision: 1001385

URL: http://svn.apache.org/viewvc?rev=1001385&view=rev
Log:
Requests that the file or directory denoted by this abstract pathname be deleted when the
virtual machine terminates.

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

Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java?rev=1001385&r1=1001384&r2=1001385&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
(original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
Sun Sep 26 08:09:50 2010
@@ -1026,6 +1026,7 @@ public class SingleFileLdifPartition ext
         synchronized ( lock )
         {
             File tmpFile = File.createTempFile( "ldifpartition", ".buf" );
+            tmpFile.deleteOnExit();
 
             RandomAccessFile tempBufFile = new RandomAccessFile( tmpFile.getAbsolutePath(),
"rws" );
             tempBufFile.setLength( 0 );



Mime
View raw message