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
6df4ffe6
Commit
6df4ffe6
authored
Feb 07, 2014
by
antirez
Browse files
Don't count time to feed MONITORs in SLOWLOG.
parent
142281dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
6df4ffe6
...
@@ -1871,7 +1871,7 @@ void forceCommandPropagation(redisClient *c, int flags) {
...
@@ -1871,7 +1871,7 @@ void forceCommandPropagation(redisClient *c, int flags) {
/* Call() is the core of Redis execution of a command */
/* Call() is the core of Redis execution of a command */
void
call
(
redisClient
*
c
,
int
flags
)
{
void
call
(
redisClient
*
c
,
int
flags
)
{
long
long
dirty
,
start
=
ustime
()
,
duration
;
long
long
dirty
,
start
,
duration
;
int
client_old_flags
=
c
->
flags
;
int
client_old_flags
=
c
->
flags
;
/* Sent the command to clients in MONITOR mode, only if the commands are
/* Sent the command to clients in MONITOR mode, only if the commands are
...
@@ -1887,9 +1887,10 @@ void call(redisClient *c, int flags) {
...
@@ -1887,9 +1887,10 @@ void call(redisClient *c, int flags) {
c
->
flags
&=
~
(
REDIS_FORCE_AOF
|
REDIS_FORCE_REPL
);
c
->
flags
&=
~
(
REDIS_FORCE_AOF
|
REDIS_FORCE_REPL
);
redisOpArrayInit
(
&
server
.
also_propagate
);
redisOpArrayInit
(
&
server
.
also_propagate
);
dirty
=
server
.
dirty
;
dirty
=
server
.
dirty
;
start
=
ustime
();
c
->
cmd
->
proc
(
c
);
c
->
cmd
->
proc
(
c
);
dirty
=
server
.
dirty
-
dirty
;
duration
=
ustime
()
-
start
;
duration
=
ustime
()
-
start
;
dirty
=
server
.
dirty
-
dirty
;
/* When EVAL is called loading the AOF we don't want commands called
/* When EVAL is called loading the AOF we don't want commands called
* from Lua to go into the slowlog or to populate statistics. */
* from Lua to go into the slowlog or to populate statistics. */
...
...
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