1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Reload slots in background goroutine.

This commit is contained in:
Vladimir Mihailenco
2015-05-01 10:42:58 +03:00
parent f7a1636422
commit 84dc1f963e
4 changed files with 27 additions and 43 deletions

View File

@ -113,7 +113,7 @@ func (c *ClusterPipeline) execClusterCmds(
failedCmds[""] = append(failedCmds[""], cmds[i:]...)
break
} else if moved, ask, addr := isMovedError(err); moved {
c.cluster.scheduleReload()
c.cluster.lazyReloadSlots()
cmd.reset()
failedCmds[addr] = append(failedCmds[addr], cmd)
} else if ask {