Skip to content

feat: support command cas, stats $memc_value#34

Open
syzh wants to merge 2 commits into
openresty:masterfrom
syzh:master
Open

feat: support command cas, stats $memc_value#34
syzh wants to merge 2 commits into
openresty:masterfrom
syzh:master

Conversation

@syzh
Copy link
Copy Markdown

@syzh syzh commented Aug 8, 2020

support command:

  • cas
  • stats $memc_value


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) {
Copy link
Copy Markdown
Member

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 ....

Comment thread src/ngx_http_memc_handler.c Outdated
}

if (!ngx_http_memc_valid_uint32_str(unique_token_vv->data,
unique_token_vv->len)) {
Copy link
Copy Markdown
Member

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:

https://openresty.org/en/c-coding-style-guide.html

Comment thread src/ngx_http_memc_request.c Outdated
+ bytes_len
+ sizeof(CRLF) - 1;


Copy link
Copy Markdown
Member

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;
Copy link
Copy Markdown
Member

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.

@syzh syzh requested a review from agentzh August 31, 2020 02:08
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.

2 participants