summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-04-06 16:59:18 -0700
committerdormando <dormando@rydia.net>2022-04-08 13:19:26 -0700
commit43a5d6832bce062587c9c088797f0eec46c1ded8 (patch)
treedc38f8278bb90a63a0d00e9fdb7da139565b97dd /proxy.h
parent88e7960d21865d48f68b2463515dedde66cd9ae8 (diff)
downloadmemcached-43a5d6832bce062587c9c088797f0eec46c1ded8.tar.gz
proxy: replace proxycmds stream with proxyreqs
delete the magic logging and require mcp.log_req* be used if you want those types of entries to appear. keeps a separate data stream from "proxyuser" just in case that's useful. proxycmds wasn't able to get enough context to autogenerate useful log lines, so I'd rather not have it in there at all.
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/proxy.h b/proxy.h
index 7abec66..1c44ef3 100644
--- a/proxy.h
+++ b/proxy.h
@@ -364,12 +364,11 @@ enum mcp_resp_mode {
#define RESP_CMD_MAX 8
typedef struct {
mcmc_resp_t resp;
- struct timeval start; // start time inherited from paired request
char *buf; // response line + potentially value.
size_t blen; // total size of the value to read.
int status; // status code from mcmc_read()
int bread; // amount of bytes read into value so far.
- char cmd[RESP_CMD_MAX+1]; // until we can reverse CMD_*'s to strings directly.
+ uint8_t cmd; // from parser (pr.command)
enum mcp_resp_mode mode; // reply mode (for noreply fixing)
char be_name[MAX_NAMELEN+1];
char be_port[MAX_PORTLEN+1];