]> git.saurik.com Git - redis.git/commitdiff
Limit memory used by big SLOWLOG entries.
authorantirez <antirez@gmail.com>
Sat, 21 Apr 2012 17:20:03 +0000 (19:20 +0200)
committerantirez <antirez@gmail.com>
Sat, 21 Apr 2012 18:34:45 +0000 (20:34 +0200)
Two limits are added:

1) Up to SLOWLOG_ENTRY_MAX_ARGV arguments are logged.
2) Up to SLOWLOG_ENTRY_MAX_STRING bytes per argument are logged.
3) slowlog-max-len is set to 128 by default (was 1024).

The number of remaining arguments / bytes is logged in the entry
so that the user can understand better the nature of the logged command.


No differences found