fix redirection's bug
This commit is contained in:
@@ -72,7 +72,7 @@ public abstract class JedisClusterCommand<T> {
|
|||||||
connection = null;
|
connection = null;
|
||||||
|
|
||||||
// retry with random connection
|
// retry with random connection
|
||||||
return runWithRetries(key, redirections--, true, asking);
|
return runWithRetries(key, redirections - 1, true, asking);
|
||||||
} catch (JedisRedirectionException jre) {
|
} catch (JedisRedirectionException jre) {
|
||||||
if (jre instanceof JedisAskDataException) {
|
if (jre instanceof JedisAskDataException) {
|
||||||
asking = true;
|
asking = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user