diff options
author | Trond Norbye <trond.norbye@gmail.com> | 2011-03-07 07:59:54 -0800 |
---|---|---|
committer | Trond Norbye <trond.norbye@gmail.com> | 2011-03-08 11:38:31 -0800 |
commit | 83835a25eee1ef9f3cfe1ded36732e03ab96b62b (patch) | |
tree | 9bc63614d8058ea1b492d184e011b9e5801024b8 /programs/mock_server.c | |
parent | 96e48aeadbb193f468b73cc51605ed868343b95f (diff) | |
download | memcached-83835a25eee1ef9f3cfe1ded36732e03ab96b62b.tar.gz |
Use reference counting instead of timeout for pending close
Diffstat (limited to 'programs/mock_server.c')
-rw-r--r-- | programs/mock_server.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/programs/mock_server.c b/programs/mock_server.c index d8a34cd..b05eeb5 100644 --- a/programs/mock_server.c +++ b/programs/mock_server.c @@ -63,6 +63,14 @@ static void mock_set_tap_nack_mode(const void *cookie, bool enable) { (void)enable; } +static void mock_cookie_reserve(const void *cookie) { + (void)cookie; +} + +static void mock_cookie_release(const void *cookie) { + (void)cookie; +} + static const char *mock_get_server_version() { return "mock server"; } @@ -266,7 +274,9 @@ SERVER_HANDLE_V1 *get_mock_server_api(void) .get_engine_specific = mock_get_engine_specific, .get_socket_fd = mock_get_socket_fd, .set_tap_nack_mode = mock_set_tap_nack_mode, - .notify_io_complete = mock_notify_io_complete + .notify_io_complete = mock_notify_io_complete, + .reserve = mock_cookie_reserve, + .release = mock_cookie_release }; static SERVER_STAT_API server_stat_api = { |