summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 1b9658f34..e501ae379 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -465,21 +465,21 @@ void sentinelConfigGetCommand(client *c);
void sentinelConfigSetCommand(client *c);
struct redisCommand sentinelcmds[] = {
- {"ping",pingCommand,1,"fast @connection",0,NULL,0,0,0,0,0},
- {"sentinel",sentinelCommand,-2,"admin",0,NULL,0,0,0,0,0},
- {"subscribe",subscribeCommand,-2,"pub-sub",0,NULL,0,0,0,0,0},
- {"unsubscribe",unsubscribeCommand,-1,"pub-sub",0,NULL,0,0,0,0,0},
- {"psubscribe",psubscribeCommand,-2,"pub-sub",0,NULL,0,0,0,0,0},
- {"punsubscribe",punsubscribeCommand,-1,"pub-sub",0,NULL,0,0,0,0,0},
- {"publish",sentinelPublishCommand,3,"pub-sub fast",0,NULL,0,0,0,0,0},
- {"info",sentinelInfoCommand,-1,"random @dangerous",0,NULL,0,0,0,0,0},
- {"role",sentinelRoleCommand,1,"fast read-only @dangerous",0,NULL,0,0,0,0,0},
- {"client",clientCommand,-2,"admin random @connection",0,NULL,0,0,0,0,0},
- {"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,-1,"no-auth fast @connection",0,NULL,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}
+ {"ping",pingCommand,1,"fast @connection"},
+ {"sentinel",sentinelCommand,-2,"admin"},
+ {"subscribe",subscribeCommand,-2,"pub-sub"},
+ {"unsubscribe",unsubscribeCommand,-1,"pub-sub"},
+ {"psubscribe",psubscribeCommand,-2,"pub-sub"},
+ {"punsubscribe",punsubscribeCommand,-1,"pub-sub"},
+ {"publish",sentinelPublishCommand,3,"pub-sub fast"},
+ {"info",sentinelInfoCommand,-1,"random @dangerous"},
+ {"role",sentinelRoleCommand,1,"fast read-only @dangerous"},
+ {"client",clientCommand,-2,"admin random @connection"},
+ {"shutdown",shutdownCommand,-1,"admin"},
+ {"auth",authCommand,-2,"no-auth fast @connection"},
+ {"hello",helloCommand,-1,"no-auth fast @connection"},
+ {"acl",aclCommand,-2,"admin"},
+ {"command",commandCommand,-1, "random @connection"}
};
/* this array is used for sentinel config lookup, which need to be loaded
@@ -525,7 +525,7 @@ void initSentinel(void) {
/* Translate the command string flags description into an actual
* set of flags. */
- if (populateCommandTableParseFlags(cmd,cmd->sflags) == C_ERR)
+ if (populateSingleCommand(cmd,cmd->sflags) == C_ERR)
serverPanic("Unsupported command flag");
}