db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r700463 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
Date Tue, 30 Sep 2008 13:28:43 GMT
Author: kahatlen
Date: Tue Sep 30 06:28:43 2008
New Revision: 700463

URL: http://svn.apache.org/viewvc?rev=700463&view=rev
Log:
DERBY-3883: LOBStreamControl.replaceBytes() leaves temporary files open

Moved the closing and removal of the temporary files out of the if
block it erroneously had been put in.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java?rev=700463&r1=700462&r2=700463&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java Tue Sep
30 06:28:43 2008
@@ -502,9 +502,9 @@
                         break;
                     tmpFile.write (tmpByte, 0, rdLen);
                 }while (true);
-                oldFile.close();
-                deleteFile(oldStoreFile);
             }            
+            oldFile.close();
+            deleteFile(oldStoreFile);
         }
         updateCount++;
         return stPos + buf.length;



Mime
View raw message