summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-04-01 18:32:24 -0700
committerdormando <dormando@rydia.net>2022-04-08 13:19:26 -0700
commit88e7960d21865d48f68b2463515dedde66cd9ae8 (patch)
tree4d5383e44b87b446a761ff5744c44b6440401d3c /proxy.h
parent046c4bb5d8498420c13e5357c8299b60952b2595 (diff)
downloadmemcached-88e7960d21865d48f68b2463515dedde66cd9ae8.tar.gz
proxy: mcp.log_req* API interface
Lua level API for logging full context of a request/response. Provides log_req() for simple logging and log_reqsample() for conditional logging.
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy.h b/proxy.h
index 86b4aa9..7abec66 100644
--- a/proxy.h
+++ b/proxy.h
@@ -371,6 +371,8 @@ typedef struct {
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.
enum mcp_resp_mode mode; // reply mode (for noreply fixing)
+ char be_name[MAX_NAMELEN+1];
+ char be_port[MAX_PORTLEN+1];
} mcp_resp_t;
// re-cast an io_pending_t into this more descriptive structure.