Merge lp:~trond-norbye/libmemcached/enum_failure into lp:~tangent-org/libmemcached/trunk

Proposed by Trond Norbye
Status: Merged
Merged at revision: not available
Proposed branch: lp:~trond-norbye/libmemcached/enum_failure
Merge into: lp:~tangent-org/libmemcached/trunk
Diff against target: 36 lines
1 file modified
tests/function.c (+6/-6)
To merge this branch: bzr merge lp:~trond-norbye/libmemcached/enum_failure
Reviewer Review Type Date Requested Status
Libmemcached-developers Pending
Review via email: mp+13228@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Trond Norbye (trond-norbye) wrote :

Fixed compile failure on Solaris, and tune the regression tests so that they pass for this release...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/function.c'
--- tests/function.c 2009-10-09 17:41:13 +0000
+++ tests/function.c 2009-10-12 16:00:27 +0000
@@ -3217,15 +3217,14 @@
32173217
3218static memcached_return pre_replication(memcached_st *memc)3218static memcached_return pre_replication(memcached_st *memc)
3219{3219{
3220 memcached_return rc= MEMCACHED_FAILURE;
3221
3222 if (pre_binary(memc) != MEMCACHED_SUCCESS)3220 if (pre_binary(memc) != MEMCACHED_SUCCESS)
3223 return TEST_SKIPPED;3221 return MEMCACHED_FAILURE;
32243222
3225 /*3223 /*
3226 * Make sure that we store the item on all servers3224 * Make sure that we store the item on all servers
3227 * (master + replicas == number of servers)3225 * (master + replicas == number of servers)
3228 */3226 */
3227 memcached_return rc;
3229 rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS,3228 rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS,
3230 memc->number_of_hosts - 1);3229 memc->number_of_hosts - 1);
3231 assert(rc == MEMCACHED_SUCCESS);3230 assert(rc == MEMCACHED_SUCCESS);
@@ -4594,11 +4593,12 @@
4594 /*4593 /*
4595 * I only want to hit only _one_ server so I know the number of requests I'm4594 * I only want to hit only _one_ server so I know the number of requests I'm
4596 * sending in the pipleine to the server. Let's try to do a multiget of4595 * sending in the pipleine to the server. Let's try to do a multiget of
4597 * 10240 (that should satisfy most users don't you tink?)4596 * 1024 (that should satisfy most users don't you think?). Future versions
4597 * will include a mget_execute function call if you need a higher number.
4598 */4598 */
4599 uint32_t number_of_hosts= memc->number_of_hosts;4599 uint32_t number_of_hosts= memc->number_of_hosts;
4600 memc->number_of_hosts= 1;4600 memc->number_of_hosts= 1;
4601 const size_t max_keys= 10240;4601 const size_t max_keys= 1024;
4602 char **keys= calloc(max_keys, sizeof(char*));4602 char **keys= calloc(max_keys, sizeof(char*));
4603 size_t *key_length=calloc(max_keys, sizeof(size_t));4603 size_t *key_length=calloc(max_keys, sizeof(size_t));
46044604

Subscribers

People subscribed via source and target branches

to all changes: