cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1071659 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java
Date Thu, 17 Feb 2011 15:54:27 GMT
Author: jbellis
Date: Thu Feb 17 15:54:27 2011
New Revision: 1071659

URL: http://svn.apache.org/viewvc?rev=1071659&view=rev
Log:
fix callback when repair request times out (see #2069)
patch by jbellis

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java?rev=1071659&r1=1071658&r2=1071659&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/RepairCallback.java
Thu Feb 17 15:54:27 2011
@@ -66,7 +66,7 @@ public class RepairCallback<T> implement
             throw new AssertionError(ex);
         }
 
-        return resolver.isDataPresent() ? resolver.resolve() : null;
+        return resolver.getMessageCount() > 0 ? resolver.resolve() : null;
     }
 
     public void response(Message message)



Mime
View raw message