Adds command introspection to Sentinel (#7940)

Adds the `COMMAND` command to Sentinel.
This commit is contained in:
Itamar Haber 2020-10-26 00:37:58 +02:00 committed by GitHub
parent c1ff07dfbb
commit 79594252e5

View File

@ -466,7 +466,8 @@ struct redisCommand sentinelcmds[] = {
{"shutdown",shutdownCommand,-1,"admin",0,NULL,0,0,0,0,0},
{"auth",authCommand,-2,"no-auth fast @connection",0,NULL,0,0,0,0,0},
{"hello",helloCommand,-2,"no-auth fast @connection",0,NULL,0,0,0,0,0},
{"acl",aclCommand,-2,"admin",0,NULL,0,0,0,0,0,0}
{"acl",aclCommand,-2,"admin",0,NULL,0,0,0,0,0,0},
{"command",commandCommand,-1, "random @connection", 0,NULL,0,0,0,0,0,0}
};
/* This function overwrites a few normal Redis config default with Sentinel