Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
35fccd87
Unverified
Commit
35fccd87
authored
Feb 26, 2022
by
Madelyn Olson
Committed by
GitHub
Feb 26, 2022
Browse files
Fixed typo in variable name (#10347)
parent
1dc89e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
35fccd87
...
...
@@ -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_sect
o
ins
=
NULL
;
static
dict
*
cached_all_info_secti
o
ns
=
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_sect
o
ins
)
{
cached_all_info_sect
o
ins
=
dictCreate
(
&
stringSetDictType
);
addInfoSectionsToDict
(
cached_all_info_sect
o
ins
,
sentinel_sections
);
if
(
!
cached_all_info_secti
o
ns
)
{
cached_all_info_secti
o
ns
=
dictCreate
(
&
stringSetDictType
);
addInfoSectionsToDict
(
cached_all_info_secti
o
ns
,
sentinel_sections
);
}
sections_dict
=
cached_all_info_sect
o
ins
;
sections_dict
=
cached_all_info_secti
o
ns
;
}
sds
info
=
genRedisInfoString
(
sections_dict
,
0
,
0
);
...
...
@@ -4182,7 +4182,7 @@ void sentinelInfoCommand(client *c) {
}
dictReleaseIterator
(
di
);
}
if
(
sections_dict
!=
cached_all_info_sect
o
ins
)
if
(
sections_dict
!=
cached_all_info_secti
o
ns
)
releaseInfoSectionDict
(
sections_dict
);
addReplyBulkSds
(
c
,
info
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment