mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 06:21:32 +00:00
slow log configuration implemented
This commit is contained in:
@ -54,6 +54,7 @@ void slowlogInit(void) {
|
||||
* This function will make sure to trim the slow log accordingly to the
|
||||
* 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)
|
||||
listAddNodeHead(server.slowlog,slowlogCreateEntry(argv,argc,duration));
|
||||
|
||||
|
Reference in New Issue
Block a user