diff options
author | antirez <antirez@gmail.com> | 2011-06-30 15:54:05 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-06-30 15:54:05 +0200 |
commit | de32c37c06ee447d5d7d3505725c100da2c03c75 (patch) | |
tree | 09417dd1a94915d5272af044802aad872f826177 /src/slowlog.c | |
parent | 35a6044140deb1c70dc92c5d454745142faeeb37 (diff) | |
download | redis-de32c37c06ee447d5d7d3505725c100da2c03c75.tar.gz |
More redis.conf self-documentation. Now even queries that took exactly server.slow_log_slower_than are logged, as this is not exact but is more intuitive for people, and a value of 0 will force every query to be logged.
Diffstat (limited to 'src/slowlog.c')
-rw-r--r-- | src/slowlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slowlog.c b/src/slowlog.c index a257a17bf..17edf6159 100644 --- a/src/slowlog.c +++ b/src/slowlog.c @@ -55,7 +55,7 @@ void slowlogInit(void) { * configured max length. */ void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration) { if (server.slowlog_log_slower_than < 0) return; /* Slowlog disabled */ - if (duration > server.slowlog_log_slower_than) + if (duration >= server.slowlog_log_slower_than) listAddNodeHead(server.slowlog,slowlogCreateEntry(argv,argc,duration)); /* Remove old entries if needed. */ |