]> git.saurik.com Git - redis.git/blob - src/slowlog.h
Fixed issue #516 (ZINTERSTORE mixing sets and zsets).
[redis.git] / src / slowlog.h
1 #define SLOWLOG_ENTRY_MAX_ARGC 32
2 #define SLOWLOG_ENTRY_MAX_STRING 128
3
4 /* This structure defines an entry inside the slow log list */
5 typedef struct slowlogEntry {
6 robj **argv;
7 int argc;
8 long long id; /* Unique entry identifier. */
9 long long duration; /* Time spent by the query, in nanoseconds. */
10 time_t time; /* Unix time at which the query was executed. */
11 } slowlogEntry;
12
13 /* Exported API */
14 void slowlogInit(void);
15 void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration);
16
17 /* Exported commands */
18 void slowlogCommand(redisClient *c);