diff --git a/src/sentinel.c b/src/sentinel.c index 02cf931abf3..5c011ce62a0 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -457,6 +457,7 @@ dictType renamedCommandsDictType = { /* =========================== Initialization =============================== */ void sentinelSetCommand(client *c); +void sentinelGetCommand(client *c); void sentinelConfigGetCommand(client *c); void sentinelConfigSetCommand(client *c); @@ -3942,6 +3943,8 @@ NULL } else if (!strcasecmp(c->argv[1]->ptr,"set")) { if (c->argc <= 3) goto numargserr; sentinelSetCommand(c); + } else if (!strcasecmp(c->argv[1]->ptr,"get")) { + sentinelGetCommand(c); } else if (!strcasecmp(c->argv[1]->ptr,"config")) { if (c->argc < 3) goto numargserr; if (!strcasecmp(c->argv[2]->ptr,"set") && c->argc == 5) @@ -4153,6 +4156,85 @@ void sentinelRoleCommand(client *c) { dictReleaseIterator(di); } +/* SENTINEL GET