@@ -4111,7 +4111,7 @@ void addInfoSectionsToDict(dict *section_dict, char **sections);
4111
4111
void sentinelInfoCommand (client * c ) {
4112
4112
char * sentinel_sections [] = {"server" , "clients" , "cpu" , "stats" , "sentinel" , NULL };
4113
4113
int sec_all = 0 , sec_everything = 0 ;
4114
- static dict * cached_all_info_sectoins = NULL ;
4114
+ static dict * cached_all_info_sections = NULL ;
4115
4115
4116
4116
/* Get requested section list. */
4117
4117
dict * sections_dict = genInfoSectionDict (c -> argv + 1 , c -> argc - 1 , sentinel_sections , & sec_all , & sec_everything );
@@ -4135,11 +4135,11 @@ void sentinelInfoCommand(client *c) {
4135
4135
if (sec_all || sec_everything ) {
4136
4136
releaseInfoSectionDict (sections_dict );
4137
4137
/* 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 );
4141
4141
}
4142
- sections_dict = cached_all_info_sectoins ;
4142
+ sections_dict = cached_all_info_sections ;
4143
4143
}
4144
4144
4145
4145
sds info = genRedisInfoString (sections_dict , 0 , 0 );
@@ -4182,7 +4182,7 @@ void sentinelInfoCommand(client *c) {
4182
4182
}
4183
4183
dictReleaseIterator (di );
4184
4184
}
4185
- if (sections_dict != cached_all_info_sectoins )
4185
+ if (sections_dict != cached_all_info_sections )
4186
4186
releaseInfoSectionDict (sections_dict );
4187
4187
addReplyBulkSds (c , info );
4188
4188
}
0 commit comments