directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From malder...@apache.org
Subject svn commit: r560211 - /directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java
Date Fri, 27 Jul 2007 12:22:37 GMT
Author: malderson
Date: Fri Jul 27 05:22:31 2007
New Revision: 560211

URL: http://svn.apache.org/viewvc?view=rev&rev=560211
Log:
Reverting 560042: "Fixed DIRSERVER-895, where a server will never accept replication logs
until it is restarted if a connection is closed during a replication transaction (e.g. due
to a message timeout).  No test for this yet as other issues would prevent it from being reliable."
 It seems to be causing a problem for the test server.

Modified:
    directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java

Modified: directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java?view=diff&rev=560211&r1=560210&r2=560211
==============================================================================
--- directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java
(original)
+++ directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationServerContextHandler.java
Fri Jul 27 05:22:31 2007
@@ -69,7 +69,7 @@
     public synchronized void contextEnd( ReplicationContext ctx ) throws Exception
     {
         // Reset the mark if the context has the unfinished transaction.
-        if ( ctx.getPeer() != null && ctx.getPeer().equals( replicaInTransaction
) )
+        if ( !ctx.getPeer().equals( replicaInTransaction ) )
         {
             replicaInTransaction = null;
         }



Mime
View raw message