-
Notifications
You must be signed in to change notification settings - Fork 56
feat: support command cas, stats $memc_value #34
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
|
||
u->input_filter_init = ngx_http_memc_empty_filter_init; | ||
u->input_filter = ngx_http_memc_empty_filter; | ||
} else if (memc_cmd == ngx_http_memc_cmd_version) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: needs a blank line before } else if ...
.
src/ngx_http_memc_handler.c
Outdated
} | ||
|
||
if (!ngx_http_memc_valid_uint32_str(unique_token_vv->data, | ||
unique_token_vv->len)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: {
should be on its own line for this.
See the nginx coding style doc for more details:
src/ngx_http_memc_request.c
Outdated
@@ -124,6 +125,12 @@ ngx_http_memc_create_storage_cmd_request(ngx_http_request_t *r) | |||
+ bytes_len | |||
+ sizeof(CRLF) - 1; | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only 1 blank line should be used here.
|
||
return NGX_HTTP_BAD_REQUEST; | ||
} | ||
ctx->memc_unique_token_vv = unique_token_vv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a blank line before this line.
support command: