]> git.saurik.com Git - redis.git/blame_incremental - src/slowlog.h
Use correct variable name for value to convert.
[redis.git] / src / slowlog.h
... / ...
CommitLineData
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 */
5typedef 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 */
14void slowlogInit(void);
15void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration);
16
17/* Exported commands */
18void slowlogCommand(redisClient *c);