From 79594252e5ec7f6e12a68cdaaf5d8079f3123f35 Mon Sep 17 00:00:00 2001 From: Itamar Haber Date: Mon, 26 Oct 2020 00:37:58 +0200 Subject: [PATCH] Adds command introspection to Sentinel (#7940) Adds the `COMMAND` command to Sentinel. --- src/sentinel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index 31a66a6ff..71e28e1d2 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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