diff options
author | dormando <dormando@rydia.net> | 2022-02-04 15:36:15 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-02-04 16:56:46 -0800 |
commit | b6fd865985dd8285bd963dfd429d7f475d54d77f (patch) | |
tree | b15989aab41b9aa98d7e83d52dd82e5c3ff79702 /memcached.c | |
parent | 8da2e098e3e649712170275a7629474311118752 (diff) | |
download | memcached-b6fd865985dd8285bd963dfd429d7f475d54d77f.tar.gz |
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.
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |