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
9f8ded8c
Commit
9f8ded8c
authored
Oct 15, 2010
by
antirez
Browse files
CONFIG RESETSTAT no longer resets the server uptime. Now keyspace hits/misses are reset as well.
parent
95506e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
9f8ded8c
...
@@ -475,10 +475,11 @@ void configCommand(redisClient *c) {
...
@@ -475,10 +475,11 @@ void configCommand(redisClient *c) {
configGetCommand
(
c
);
configGetCommand
(
c
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"resetstat"
))
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"resetstat"
))
{
if
(
c
->
argc
!=
2
)
goto
badarity
;
if
(
c
->
argc
!=
2
)
goto
badarity
;
server
.
stat_keyspace_hits
=
0
;
server
.
stat_keyspace_misses
=
0
;
server
.
stat_numcommands
=
0
;
server
.
stat_numcommands
=
0
;
server
.
stat_numconnections
=
0
;
server
.
stat_numconnections
=
0
;
server
.
stat_expiredkeys
=
0
;
server
.
stat_expiredkeys
=
0
;
server
.
stat_starttime
=
time
(
NULL
);
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
}
else
{
}
else
{
addReplyError
(
c
,
addReplyError
(
c
,
...
...
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