• antirez's avatar
    Limit memory used by big SLOWLOG entries. · d3701d27
    antirez authored
    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.
    d3701d27
slowlog.h 591 Bytes