mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
Cluster: new command flag forcing implicit ASKING.
Also using this new flag the RESTORE-ASKING command was implemented that will be used by MIGRATE.
This commit is contained in:
@ -2007,7 +2007,7 @@ clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **arg
|
||||
* it is assigned to a different node, but only if the client
|
||||
* issued an ASKING command before. */
|
||||
if (server.cluster->importing_slots_from[slot] != NULL &&
|
||||
c->flags & REDIS_ASKING) {
|
||||
(c->flags & REDIS_ASKING || cmd->flags & REDIS_CMD_ASKING)) {
|
||||
return server.cluster->myself;
|
||||
}
|
||||
/* It's not a -ASK case. Base case: just return the right node. */
|
||||
|
Reference in New Issue
Block a user