]> git.saurik.com Git - redis.git/blame - src/slowlog.h
rdbLoad() should check REDIS_RDB_VERSION instead of hardcoded number.
[redis.git] / src / slowlog.h
CommitLineData
590d55a2 1#define SLOWLOG_ENTRY_MAX_ARGC 32
2#define SLOWLOG_ENTRY_MAX_STRING 128
3
daa70b17 4/* This structure defines an entry inside the slow log list */
5typedef struct slowlogEntry {
6 robj **argv;
7 int argc;
2cb68284 8 long long id; /* Unique entry identifier. */
daa70b17 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 */
14void slowlogInit(void);
15void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration);
16
17/* Exported commands */
18void slowlogCommand(redisClient *c);