You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by li...@apache.org on 2011/03/20 17:30:59 UTC
svn commit: r1083493 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java
Author: lilywei
Date: Sun Mar 20 16:30:59 2011
New Revision: 1083493
URL: http://svn.apache.org/viewvc?rev=1083493&view=rev
Log:
DERBY-5092 avoid Boolean allocations for rowset data in client cursor
Patch contributed by Dave Brosius < dbrosius@apache.org>
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java?rev=1083493&r1=1083492&r2=1083493&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/replication/net/ReplicationMessageTransmit.java Sun Mar 20 16:30:59 2011
@@ -31,6 +31,7 @@ import javax.net.SocketFactory;
import org.apache.derby.iapi.error.StandardException;
import org.apache.derby.iapi.reference.SQLState;
import org.apache.derby.iapi.util.InterruptStatus;
+import org.apache.derby.impl.store.replication.ReplicationLogger;
import org.apache.derby.shared.common.reference.MessageId;
/**
@@ -368,11 +369,14 @@ public class ReplicationMessageTransmit
} catch (SocketTimeoutException ste) {
// ignore socket timeout on reads
} catch (ClassNotFoundException cnfe) {
- // TODO: print problem to log
+ ReplicationLogger repLogger = new ReplicationLogger(dbname);
+ repLogger.logError(MessageId.REPLICATION_ERROR_BEGIN, cnfe);
} catch (IOException ex) {
// TODO: print problem to log
// If we get an exception for this socket, the log shipper
// will clean up. Stop this thread.
+ ReplicationLogger repLogger = new ReplicationLogger(dbname);
+ repLogger.logError(MessageId.REPLICATION_ERROR_BEGIN, ex);
stopMessageReceiver = true;
}
}