From b6fd865985dd8285bd963dfd429d7f475d54d77f Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 4 Feb 2022 15:36:15 -0800 Subject: proxy: more misc fixes - fixes potential memory leaks if an error is generated while creating a pool object. - misc comment updates and error handling. - avoid crash if attempting to route commands that don't have a key. --- memcached.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'memcached.h') diff --git a/memcached.h b/memcached.h index 7826c41..7a577f4 100644 --- a/memcached.h +++ b/memcached.h @@ -337,7 +337,8 @@ struct slab_stats { #ifdef PROXY #define PROXY_THREAD_STATS_FIELDS \ X(proxy_conn_requests) \ - X(proxy_conn_errors) + X(proxy_conn_errors) \ + X(proxy_conn_oom) #endif /** -- cgit v1.2.1