You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2014/08/22 20:13:22 UTC
svn commit: r1619879 -
/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
Author: markrmiller
Date: Fri Aug 22 18:13:21 2014
New Revision: 1619879
URL: http://svn.apache.org/r1619879
Log:
SOLR-6405: Remove unnecessary attemptCount > 0 check.
Modified:
lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java?rev=1619879&r1=1619878&r2=1619879&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java Fri Aug 22 18:13:21 2014
@@ -118,9 +118,7 @@ public class ZkCmdExecutor {
* the number of the attempts performed so far
*/
protected void retryDelay(int attemptCount) throws InterruptedException {
- if (attemptCount > 0) {
- Thread.sleep((attemptCount + 1) * retryDelay);
- }
+ Thread.sleep((attemptCount + 1) * retryDelay);
}
}