Skip to content

Commit 35fccd8

Browse files
authored
Fixed typo in variable name (redis#10347)
1 parent 1dc89e2 commit 35fccd8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sentinel.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -4111,7 +4111,7 @@ void addInfoSectionsToDict(dict *section_dict, char **sections);
41114111
void sentinelInfoCommand(client *c) {
41124112
char *sentinel_sections[] = {"server", "clients", "cpu", "stats", "sentinel", NULL};
41134113
int sec_all = 0, sec_everything = 0;
4114-
static dict *cached_all_info_sectoins = NULL;
4114+
static dict *cached_all_info_sections = NULL;
41154115

41164116
/* Get requested section list. */
41174117
dict *sections_dict = genInfoSectionDict(c->argv+1, c->argc-1, sentinel_sections, &sec_all, &sec_everything);
@@ -4135,11 +4135,11 @@ void sentinelInfoCommand(client *c) {
41354135
if (sec_all || sec_everything) {
41364136
releaseInfoSectionDict(sections_dict);
41374137
/* We cache this dict as an optimization. */
4138-
if (!cached_all_info_sectoins) {
4139-
cached_all_info_sectoins = dictCreate(&stringSetDictType);
4140-
addInfoSectionsToDict(cached_all_info_sectoins, sentinel_sections);
4138+
if (!cached_all_info_sections) {
4139+
cached_all_info_sections = dictCreate(&stringSetDictType);
4140+
addInfoSectionsToDict(cached_all_info_sections, sentinel_sections);
41414141
}
4142-
sections_dict = cached_all_info_sectoins;
4142+
sections_dict = cached_all_info_sections;
41434143
}
41444144

41454145
sds info = genRedisInfoString(sections_dict, 0, 0);
@@ -4182,7 +4182,7 @@ void sentinelInfoCommand(client *c) {
41824182
}
41834183
dictReleaseIterator(di);
41844184
}
4185-
if (sections_dict != cached_all_info_sectoins)
4185+
if (sections_dict != cached_all_info_sections)
41864186
releaseInfoSectionDict(sections_dict);
41874187
addReplyBulkSds(c, info);
41884188
}

0 commit comments

Comments
 (0)