From 1738c2fbac278b3f7e2dfbf55512a88f8f82c2bc Mon Sep 17 00:00:00 2001 From: Yao Yue Date: Sun, 26 Feb 2017 09:59:24 -0800 Subject: [PATCH] fixing bug #138 (#140) next integration test will include checks against future regression. --- src/protocol/data/memcache/request.c | 2 +- src/protocol/data/memcache/response.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocol/data/memcache/request.c b/src/protocol/data/memcache/request.c index f1e177f32..862a3187e 100644 --- a/src/protocol/data/memcache/request.c +++ b/src/protocol/data/memcache/request.c @@ -68,6 +68,7 @@ request_create(void) request_reset(req); INCR(request_metrics, request_create); + INCR(request_metrics, request_free); return req; } @@ -120,7 +121,6 @@ request_pool_create(uint32_t max) log_crit("cannot preallocate request pool, OOM. abort"); exit(EXIT_FAILURE); } - UPDATE_VAL(request_metrics, request_free, max); } struct request * diff --git a/src/protocol/data/memcache/response.c b/src/protocol/data/memcache/response.c index 8cdb0c46e..e4dd16efc 100644 --- a/src/protocol/data/memcache/response.c +++ b/src/protocol/data/memcache/response.c @@ -55,6 +55,7 @@ response_create(void) response_reset(rsp); INCR(response_metrics, response_create); + INCR(response_metrics, response_free); return rsp; } @@ -106,7 +107,6 @@ response_pool_create(uint32_t max) log_crit("cannot preallocate response pool, OOM. abort"); exit(EXIT_FAILURE); } - UPDATE_VAL(response_metrics, response_free, max); } struct response *