Skip to content

Commit

Permalink
fixing bug #138 (#140)
Browse files Browse the repository at this point in the history
next integration test will include checks against future regression.
  • Loading branch information
Yao Yue authored Feb 26, 2017
1 parent 23ba44e commit 1738c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/protocol/data/memcache/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ request_create(void)
request_reset(req);

INCR(request_metrics, request_create);
INCR(request_metrics, request_free);

return req;
}
Expand Down Expand Up @@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/data/memcache/response.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ response_create(void)
response_reset(rsp);

INCR(response_metrics, response_create);
INCR(response_metrics, response_free);

return rsp;
}
Expand Down Expand Up @@ -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 *
Expand Down

0 comments on commit 1738c2f

Please sign in to comment.