static memcached_return pre_replication(memcached_st *memc)
{
- memcached_return rc= MEMCACHED_FAILURE;
-
if (pre_binary(memc) != MEMCACHED_SUCCESS)
- return TEST_SKIPPED;
+ return MEMCACHED_FAILURE;
/*
* Make sure that we store the item on all servers
* (master + replicas == number of servers)
- */
+ */
+ memcached_return rc;
rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS,
memc->number_of_hosts - 1);
assert(rc == MEMCACHED_SUCCESS);
/*
* 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));