summaryrefslogtreecommitdiff
path: root/programs/mock_server.c
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2011-03-07 07:59:54 -0800
committerTrond Norbye <trond.norbye@gmail.com>2011-03-08 11:38:31 -0800
commit83835a25eee1ef9f3cfe1ded36732e03ab96b62b (patch)
tree9bc63614d8058ea1b492d184e011b9e5801024b8 /programs/mock_server.c
parent96e48aeadbb193f468b73cc51605ed868343b95f (diff)
downloadmemcached-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.c12
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 = {