db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r700562 - /db/derby/code/branches/10.4/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
Date Tue, 30 Sep 2008 19:32:11 GMT
Author: kahatlen
Date: Tue Sep 30 12:32:11 2008
New Revision: 700562

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

Merged fix from trunk (revision 700463).

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

Modified: db/derby/code/branches/10.4/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.4/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java?rev=700562&r1=700561&r2=700562&view=diff
==============================================================================
--- db/derby/code/branches/10.4/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
(original)
+++ db/derby/code/branches/10.4/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
Tue Sep 30 12:32:11 2008
@@ -477,9 +477,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