Fix typo in sentinel.c (#8600)

This commit is contained in:
yanchaozhong 2021-03-06 01:32:11 +08:00 committed by GitHub
parent b6e4761af9
commit 11e3eaa233

View File

@ -1732,7 +1732,7 @@ char *sentinelGetInstanceTypeString(sentinelRedisInstance *ri) {
* with CONFIG and SLAVEOF commands renamed for security concerns. In that * with CONFIG and SLAVEOF commands renamed for security concerns. In that
* case we check the ri->renamed_command table (or if the instance is a slave, * case we check the ri->renamed_command table (or if the instance is a slave,
* we check the one of the master), and map the command that we should send * we check the one of the master), and map the command that we should send
* to the set of renamed commads. However, if the command was not renamed, * to the set of renamed commands. However, if the command was not renamed,
* we just return "command" itself. */ * we just return "command" itself. */
char *sentinelInstanceMapCommand(sentinelRedisInstance *ri, char *command) { char *sentinelInstanceMapCommand(sentinelRedisInstance *ri, char *command) {
sds sc = sdsnew(command); sds sc = sdsnew(command);