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
1=== modified file 'tests/function.c'
2--- tests/function.c 2009-10-09 17:41:13 +0000
3+++ tests/function.c 2009-10-12 16:00:27 +0000
4@@ -3217,15 +3217,14 @@
5
6 static memcached_return pre_replication(memcached_st *memc)
7 {
8- memcached_return rc= MEMCACHED_FAILURE;
9-
10 if (pre_binary(memc) != MEMCACHED_SUCCESS)
11- return TEST_SKIPPED;
12+ return MEMCACHED_FAILURE;
13
14 /*
15 * Make sure that we store the item on all servers
16 * (master + replicas == number of servers)
17- */
18+ */
19+ memcached_return rc;
20 rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS,
21 memc->number_of_hosts - 1);
22 assert(rc == MEMCACHED_SUCCESS);
23@@ -4594,11 +4593,12 @@
24 /*
25 * I only want to hit only _one_ server so I know the number of requests I'm
26 * sending in the pipleine to the server. Let's try to do a multiget of
27- * 10240 (that should satisfy most users don't you tink?)
28+ * 1024 (that should satisfy most users don't you think?). Future versions
29+ * will include a mget_execute function call if you need a higher number.
30 */
31 uint32_t number_of_hosts= memc->number_of_hosts;
32 memc->number_of_hosts= 1;
33- const size_t max_keys= 10240;
34+ const size_t max_keys= 1024;
35 char **keys= calloc(max_keys, sizeof(char*));
36 size_t *key_length=calloc(max_keys, sizeof(size_t));
37

Subscribers

People subscribed via source and target branches

to all changes: