mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #6863 from oranagra/module_commands_no_slowlog
add no-slowlog option to RM_CreateCommand
This commit is contained in:
commit
c21c23bbba
@ -730,6 +730,7 @@ int64_t commandFlagsFromString(char *s) {
|
|||||||
else if (!strcasecmp(t,"random")) flags |= CMD_RANDOM;
|
else if (!strcasecmp(t,"random")) flags |= CMD_RANDOM;
|
||||||
else if (!strcasecmp(t,"allow-stale")) flags |= CMD_STALE;
|
else if (!strcasecmp(t,"allow-stale")) flags |= CMD_STALE;
|
||||||
else if (!strcasecmp(t,"no-monitor")) flags |= CMD_SKIP_MONITOR;
|
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,"fast")) flags |= CMD_FAST;
|
||||||
else if (!strcasecmp(t,"no-auth")) flags |= CMD_NO_AUTH;
|
else if (!strcasecmp(t,"no-auth")) flags |= CMD_NO_AUTH;
|
||||||
else if (!strcasecmp(t,"getkeys-api")) flags |= CMD_MODULE_GETKEYS;
|
else if (!strcasecmp(t,"getkeys-api")) flags |= CMD_MODULE_GETKEYS;
|
||||||
@ -781,6 +782,8 @@ int64_t commandFlagsFromString(char *s) {
|
|||||||
* this means.
|
* this means.
|
||||||
* * **"no-monitor"**: Don't propagate the command on monitor. Use this if
|
* * **"no-monitor"**: Don't propagate the command on monitor. Use this if
|
||||||
* the command has sensible data among the arguments.
|
* 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
|
* * **"fast"**: The command time complexity is not greater
|
||||||
* than O(log(N)) where N is the size of the collection or
|
* than O(log(N)) where N is the size of the collection or
|
||||||
* anything else representing the normal scalability
|
* anything else representing the normal scalability
|
||||||
|
Loading…
Reference in New Issue
Block a user