Skip to content

Update slowlog.h #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 7.0-cn-annotated
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/slowlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
#define SLOWLOG_ENTRY_MAX_STRING 128

/* This structure defines an entry inside the slow log list */
/* 慢日志结构 */
typedef struct slowlogEntry {
robj **argv;
int argc;
long long id; /* Unique entry identifier. */
long long duration; /* Time spent by the query, in microseconds. */
time_t time; /* Unix time at which the query was executed. */
sds cname; /* Client name. */
sds peerid; /* Client network address. */
long long id; /* Unique entry identifier. 唯一id,自增*/
long long duration; /* Time spent by the query, in microseconds. 时间花费单位,微秒*/
time_t time; /* Unix time at which the query was executed. 执行的unix时间戳*/
sds cname; /* Client name. 客户端名字*/
sds peerid; /* Client network address. 客户端地址*/
} slowlogEntry;

/* Exported API */
Expand Down