From 35fccd875a3bbd8b0e66ce9d7bf47d5a6ce94ded Mon Sep 17 00:00:00 2001 From: Madelyn Olson <34459052+madolson@users.noreply.github.com> Date: Sat, 26 Feb 2022 19:52:09 -0800 Subject: Fixed typo in variable name (#10347) --- src/sentinel.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/sentinel.c b/src/sentinel.c index 89aad023d..eb37e5ede 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -4111,7 +4111,7 @@ void addInfoSectionsToDict(dict *section_dict, char **sections); void sentinelInfoCommand(client *c) { char *sentinel_sections[] = {"server", "clients", "cpu", "stats", "sentinel", NULL}; int sec_all = 0, sec_everything = 0; - static dict *cached_all_info_sectoins = NULL; + static dict *cached_all_info_sections = NULL; /* Get requested section list. */ dict *sections_dict = genInfoSectionDict(c->argv+1, c->argc-1, sentinel_sections, &sec_all, &sec_everything); @@ -4135,11 +4135,11 @@ void sentinelInfoCommand(client *c) { if (sec_all || sec_everything) { releaseInfoSectionDict(sections_dict); /* We cache this dict as an optimization. */ - if (!cached_all_info_sectoins) { - cached_all_info_sectoins = dictCreate(&stringSetDictType); - addInfoSectionsToDict(cached_all_info_sectoins, sentinel_sections); + if (!cached_all_info_sections) { + cached_all_info_sections = dictCreate(&stringSetDictType); + addInfoSectionsToDict(cached_all_info_sections, sentinel_sections); } - sections_dict = cached_all_info_sectoins; + sections_dict = cached_all_info_sections; } sds info = genRedisInfoString(sections_dict, 0, 0); @@ -4182,7 +4182,7 @@ void sentinelInfoCommand(client *c) { } dictReleaseIterator(di); } - if (sections_dict != cached_all_info_sectoins) + if (sections_dict != cached_all_info_sections) releaseInfoSectionDict(sections_dict); addReplyBulkSds(c, info); } -- cgit v1.2.1