db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oyste...@apache.org
Subject svn commit: r634694 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java
Date Fri, 07 Mar 2008 14:37:16 GMT
Author: oysteing
Date: Fri Mar  7 06:37:15 2008
New Revision: 634694

URL: http://svn.apache.org/viewvc?rev=634694&view=rev
Log:
DERBY-3358: Do not cache Throwable in printStackAndStopMaster
Contributed by V Narayanan.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java?rev=634694&r1=634693&r2=634694&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/master/MasterController.java
Fri Mar  7 06:37:15 2008
@@ -538,17 +538,17 @@
      * used to print the error stack for the given exception and
      * stop the master.
      *
-     * @param t the throwable that needs to be handled.
+     * @param e the exception that needs to be handled.
      */
-    private void printStackAndStopMaster(Throwable t) {
-        repLogger.logError(MessageId.REPLICATION_LOGSHIPPER_EXCEPTION, t);
+    private void printStackAndStopMaster(Exception e) {
+        repLogger.logError(MessageId.REPLICATION_LOGSHIPPER_EXCEPTION, e);
         try {
             stopMaster();
-        } catch (Throwable t_stopmaster) {
+        } catch (StandardException se) {
             //The stop master threw an exception saying the replication
             //has been stopped already.
             repLogger.
-                logError(MessageId.REPLICATION_MASTER_STOPPED, t);
+                logError(MessageId.REPLICATION_MASTER_STOPPED, se);
         }
     }
     



Mime
View raw message