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.c | 1 + 1 file changed, 1 insertion(+) (limited to 'memcached.c') diff --git a/memcached.c b/memcached.c index 87db72c..743a75a 100644 --- a/memcached.c +++ b/memcached.c @@ -1815,6 +1815,7 @@ void server_stats(ADD_STAT add_stats, conn *c) { if (settings.proxy_enabled) { APPEND_STAT("proxy_conn_requests", "%llu", (unsigned long long)thread_stats.proxy_conn_requests); APPEND_STAT("proxy_conn_errors", "%llu", (unsigned long long)thread_stats.proxy_conn_errors); + APPEND_STAT("proxy_conn_oom", "%llu", (unsigned long long)thread_stats.proxy_conn_oom); } #endif APPEND_STAT("delete_misses", "%llu", (unsigned long long)thread_stats.delete_misses); -- cgit v1.2.1