db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r763980 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java
Date Fri, 10 Apr 2009 17:11:56 GMT
Author: kmarsden
Date: Fri Apr 10 17:11:55 2009
New Revision: 763980

URL: http://svn.apache.org/viewvc?rev=763980&view=rev
Log:
DERBY-4128 Failure in ServerPropertiesTest due to java.security.AccessControlException on
the server side, in 10.4 to 10.5.1. soft upgrade mode

2nd commit.  Fix case where trace file might be created twice.


Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java?rev=763980&r1=763979&r2=763980&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java Fri Apr 10 17:11:55
2009
@@ -188,6 +188,8 @@
                                     return new  PrintWriter (new java.io.BufferedWriter (new
java.io.FileWriter (fileName), 4096));
                                 }
                             }));
+                    // If we successfully made the file. break out here and don't retry
+                    break;
                 } catch (PrivilegedActionException pae) {
                     Exception e = pae.getException();
                     // If we got a FileNotFoundException on the first attempt,



Mime
View raw message