mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
parent
91b4966783
commit
d827dbfda7
@ -2385,7 +2385,8 @@ int processCommand(client *c) {
|
|||||||
!(c->flags & CLIENT_MASTER) &&
|
!(c->flags & CLIENT_MASTER) &&
|
||||||
!(c->flags & CLIENT_LUA &&
|
!(c->flags & CLIENT_LUA &&
|
||||||
server.lua_caller->flags & CLIENT_MASTER) &&
|
server.lua_caller->flags & CLIENT_MASTER) &&
|
||||||
!(c->cmd->getkeys_proc == NULL && c->cmd->firstkey == 0))
|
!(c->cmd->getkeys_proc == NULL && c->cmd->firstkey == 0 &&
|
||||||
|
c->cmd->proc != execCommand))
|
||||||
{
|
{
|
||||||
int hashslot;
|
int hashslot;
|
||||||
|
|
||||||
@ -2397,7 +2398,11 @@ int processCommand(client *c) {
|
|||||||
int error_code;
|
int error_code;
|
||||||
clusterNode *n = getNodeByQuery(c,c->cmd,c->argv,c->argc,&hashslot,&error_code);
|
clusterNode *n = getNodeByQuery(c,c->cmd,c->argv,c->argc,&hashslot,&error_code);
|
||||||
if (n == NULL || n != server.cluster->myself) {
|
if (n == NULL || n != server.cluster->myself) {
|
||||||
flagTransaction(c);
|
if (c->cmd->proc == execCommand) {
|
||||||
|
discardTransaction(c);
|
||||||
|
} else {
|
||||||
|
flagTransaction(c);
|
||||||
|
}
|
||||||
clusterRedirectClient(c,n,hashslot,error_code);
|
clusterRedirectClient(c,n,hashslot,error_code);
|
||||||
return C_OK;
|
return C_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user