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)