From: Trond Norbye Date: Mon, 12 Oct 2009 13:53:19 +0000 (+0200) Subject: Reduce the number of items in the mget for regression_bug_434843 to 1024 X-Git-Tag: 0.34~5^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=25b78e63bc7112ba78f020eff2ffbb552888fc20;p=awesomized%2Flibmemcached 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. --- 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));