From 25b78e63bc7112ba78f020eff2ffbb552888fc20 Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Mon, 12 Oct 2009 15:53:19 +0200 Subject: [PATCH] Reduce the number of items in the mget for regression_bug_434843 to 1024 A higher number caused deadlock on MacOSX and Solaris 10. For a higher number of items you should use the upcomming mget_execute interface. --- tests/function.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/function.c b/tests/function.c index aadd2dec..52fd5900 100644 --- a/tests/function.c +++ b/tests/function.c @@ -4593,11 +4593,12 @@ static test_return_t regression_bug_434843(memcached_st *memc) /* * I only want to hit only _one_ server so I know the number of requests I'm * sending in the pipleine to the server. Let's try to do a multiget of - * 10240 (that should satisfy most users don't you tink?) + * 1024 (that should satisfy most users don't you think?). Future versions + * will include a mget_execute function call if you need a higher number. */ uint32_t number_of_hosts= memc->number_of_hosts; memc->number_of_hosts= 1; - const size_t max_keys= 10240; + const size_t max_keys= 1024; char **keys= calloc(max_keys, sizeof(char*)); size_t *key_length=calloc(max_keys, sizeof(size_t)); -- 2.30.2