commit | 87cf6e7627e9b8d84358f7f15665ea20fcdfae99 | [log] [tgz] |
---|---|---|
author | Hugo Arès <hugo.ares@ericsson.com> | Fri Apr 28 10:27:09 2017 +0200 |
committer | Hugo Arès <hugo.ares@ericsson.com> | Fri Apr 28 10:28:05 2017 +0200 |
tree | 39645d3b54f5ae94b32fd53da1f94eb2acd359bf | |
parent | a6cba7b3ab4aa1e1ad0f0deb95078aacaa29b37d [diff] | |
parent | dc18cb665eb452d71602e1a980d7669a67265dfc [diff] |
Merge branch 'stable-2.14' * stable-2.14: Fix replication retries when maxRetries is set to 0 Change-Id: I3d2986f1707bf1b60675ea28fe3dbcc8dfb04681
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java index 03db941..e472954 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java
@@ -208,7 +208,7 @@ boolean setToRetry() { retrying = true; retryCount++; - return retryCount <= maxRetries; + return maxRetries == 0 || retryCount <= maxRetries; } void canceledByReplication() {