Lines Matching refs:error_code
4974 …Query(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashslot, int *error_code) { in getNodeByQuery() argument
4983 if (error_code) *error_code = CLUSTER_REDIR_NONE; in getNodeByQuery()
5034 if (error_code) in getNodeByQuery()
5035 *error_code = CLUSTER_REDIR_DOWN_UNBOUND; in getNodeByQuery()
5058 if (error_code) in getNodeByQuery()
5059 *error_code = CLUSTER_REDIR_CROSS_SLOT; in getNodeByQuery()
5085 if (error_code) *error_code = CLUSTER_REDIR_DOWN_STATE; in getNodeByQuery()
5101 if (error_code) *error_code = CLUSTER_REDIR_ASK; in getNodeByQuery()
5113 if (error_code) *error_code = CLUSTER_REDIR_UNSTABLE; in getNodeByQuery()
5133 if (n != myself && error_code) *error_code = CLUSTER_REDIR_MOVED; in getNodeByQuery()
5144 void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_code) { in clusterRedirectClient() argument
5145 if (error_code == CLUSTER_REDIR_CROSS_SLOT) { in clusterRedirectClient()
5147 } else if (error_code == CLUSTER_REDIR_UNSTABLE) { in clusterRedirectClient()
5152 } else if (error_code == CLUSTER_REDIR_DOWN_STATE) { in clusterRedirectClient()
5154 } else if (error_code == CLUSTER_REDIR_DOWN_UNBOUND) { in clusterRedirectClient()
5156 } else if (error_code == CLUSTER_REDIR_MOVED || in clusterRedirectClient()
5157 error_code == CLUSTER_REDIR_ASK) in clusterRedirectClient()
5161 (error_code == CLUSTER_REDIR_ASK) ? "ASK" : "MOVED", in clusterRedirectClient()