summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-02-11 10:57:52 -0800
committerdormando <dormando@rydia.net>2022-02-11 16:48:33 -0800
commit0b35fb967a5088109d5237b00c8ef168a56a6f9a (patch)
tree91e5d3f750bfbde6890b8251d7bd62020423df2b /memcached.h
parent58351cdc1d5da2be9a2b4402c987c3cc9478ac7a (diff)
downloadmemcached-0b35fb967a5088109d5237b00c8ef168a56a6f9a.tar.gz
proxy: track in-flight requests
I wanted to do this via lua with some on-close hooks on the coroutine but this might work for now. not 100% sure I caught all of the incr/decr cases properly. Was trying to avoid hitting the counters too hard as well.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h
index cf1df0a..0650515 100644
--- a/memcached.h
+++ b/memcached.h
@@ -338,7 +338,8 @@ struct slab_stats {
#define PROXY_THREAD_STATS_FIELDS \
X(proxy_conn_requests) \
X(proxy_conn_errors) \
- X(proxy_conn_oom)
+ X(proxy_conn_oom) \
+ X(proxy_req_active)
#endif
/**