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
583933e2
Commit
583933e2
authored
Jul 31, 2019
by
antirez
Browse files
Fix regression causing EXEC to appear in the slow log.
This was recently introduced with PR #6266.
parent
2a8a63af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
583933e2
...
@@ -3200,7 +3200,7 @@ void call(client *c, int flags) {
...
@@ -3200,7 +3200,7 @@ void call(client *c, int flags) {
/* Log the command into the Slow log if needed, and populate the
/* Log the command into the Slow log if needed, and populate the
* per-command statistics that we show in INFO commandstats. */
* per-command statistics that we show in INFO commandstats. */
if
(
flags
&
CMD_CALL_SLOWLOG
&&
!
(
c
->
flags
&
CMD_SKIP_SLOWLOG
))
{
if
(
flags
&
CMD_CALL_SLOWLOG
&&
!
(
c
->
cmd
->
flags
&
CMD_SKIP_SLOWLOG
))
{
char
*
latency_event
=
(
c
->
cmd
->
flags
&
CMD_FAST
)
?
char
*
latency_event
=
(
c
->
cmd
->
flags
&
CMD_FAST
)
?
"fast-command"
:
"command"
;
"fast-command"
:
"command"
;
latencyAddSampleIfNeeded
(
latency_event
,
duration
/
1000
);
latencyAddSampleIfNeeded
(
latency_event
,
duration
/
1000
);
...
...
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