Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't monopolize "stats proxy" namespace

Use "proxy" "buckets" sub-subcommand to grab per-bucket stats.

Change-Id: I968588c8bdfd50a0b2d91ce1ffd6181a3370e2cc
Reviewed-on: http://review.membase.org/4494
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
commit ad1384e9fb4f4e48c7c1a17ccee271219cf63320 1 parent e2205f2
@alk alk authored steveyen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  cproxy_protocol_b.c
View
2  cproxy_protocol_b.c
@@ -141,7 +141,7 @@ void cproxy_process_upstream_binary_nread(conn *c) {
if (c->binary_header.request.opcode == PROTOCOL_BINARY_CMD_STAT) {
char *subcommand = binary_get_key(c);
size_t nkey = c->binary_header.request.keylen;
- if (nkey == 5 && memcmp(subcommand, "proxy", 5) == 0) {
+ if (nkey == 13 && memcmp(subcommand, "proxy buckets", 13) == 0) {
process_bin_proxy_stats(c);
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.