Skip to content

Send slow command to statsd#91

Merged
wooparadog merged 1 commit intoeleme:masterfrom
doyoubi:feature/StatsdSlowLog
Sep 13, 2016
Merged

Send slow command to statsd#91
wooparadog merged 1 commit intoeleme:masterfrom
doyoubi:feature/StatsdSlowLog

Conversation

@doyoubi
Copy link
Copy Markdown
Contributor

@doyoubi doyoubi commented Sep 6, 2016

No description provided.

struct conn_info *info = server->info;
memcpy(&info->addr, addr, sizeof(info->addr));
extern const size_t CMD_NUM;
info->slow_cmd_counts = cv_calloc(CMD_NUM, sizeof(uint32_t));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only server connection should have this field, maybe we should get it out of struct connection?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually struct connection is used to represent three kinds of objects, client connection, server connection, and event handler. But they do share some fields so I think putting them together is ok.

@tdsparrow
Copy link
Copy Markdown

Looks good.

@wooparadog wooparadog merged commit 523bbf6 into eleme:master Sep 13, 2016
@doyoubi doyoubi mentioned this pull request Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants