Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3b4f1477
Commit
3b4f1477
authored
Feb 06, 2020
by
Oran Agra
Committed by
antirez
Feb 27, 2020
Browse files
add no-slowlog option to RM_CreateCommand
parent
5e762d84
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
3b4f1477
...
...
@@ -730,6 +730,7 @@ int64_t commandFlagsFromString(char *s) {
else
if
(
!
strcasecmp
(
t
,
"random"
))
flags
|=
CMD_RANDOM
;
else
if
(
!
strcasecmp
(
t
,
"allow-stale"
))
flags
|=
CMD_STALE
;
else
if
(
!
strcasecmp
(
t
,
"no-monitor"
))
flags
|=
CMD_SKIP_MONITOR
;
else
if
(
!
strcasecmp
(
t
,
"no-slowlog"
))
flags
|=
CMD_SKIP_SLOWLOG
;
else
if
(
!
strcasecmp
(
t
,
"fast"
))
flags
|=
CMD_FAST
;
else
if
(
!
strcasecmp
(
t
,
"no-auth"
))
flags
|=
CMD_NO_AUTH
;
else
if
(
!
strcasecmp
(
t
,
"getkeys-api"
))
flags
|=
CMD_MODULE_GETKEYS
;
...
...
@@ -781,6 +782,8 @@ int64_t commandFlagsFromString(char *s) {
* this means.
* * **"no-monitor"**: Don't propagate the command on monitor. Use this if
* the command has sensible data among the arguments.
* * **"no-slowlog"**: Don't log this command in the slowlog. Use this if
* the command has sensible data among the arguments.
* * **"fast"**: The command time complexity is not greater
* than O(log(N)) where N is the size of the collection or
* anything else representing the normal scalability
...
...
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