Module cluster flags: initial vars / defines added.

This commit is contained in:
antirez
2018-09-19 11:20:52 +02:00
parent 0ff35370d2
commit 6a39ece652
5 changed files with 20 additions and 0 deletions

View File

@ -5438,6 +5438,10 @@ clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, in
/* Set error code optimistically for the base case. */
if (error_code) *error_code = CLUSTER_REDIR_NONE;
/* Modules can turn off Redis Cluster redirection: this is useful
* when writing a module that implements a completely different
* distributed system. */
/* We handle all the cases as if they were EXEC commands, so we have
* a common code path for everything */
if (cmd->proc == execCommand) {