int flush= number_of_keys == 1;
- for (int replica = 0; replica <= ptr->number_of_replicas; ++replica)
+ for (uint32_t replica= 0; replica <= ptr->number_of_replicas; ++replica)
{
bool success= true;
- for (uint32_t x= 0; x < number_of_keys; ++x)
+ for (x= 0; x < number_of_keys; ++x)
{
if (hash[x] == ptr->number_of_hosts)
continue; /* Already successfully sent */
memcached_server_response_increment(&ptr->hosts[x]);
/* mark all of the messages bound for this server as sent! */
- for (uint32_t x= 0; x < number_of_keys; ++x)
+ for (x= 0; x < number_of_keys; ++x)
if (hash[x] == x)
hash[x]= ptr->number_of_hosts;
}
}
- if (success) {
+ if (success)
break;
- }
}
return rc;
{
rc= simple_binary_mget(ptr, master_server_key, is_master_key_set,
keys, key_length, number_of_keys);
- } else {
+ }
+ else
+ {
uint32_t* hash;
bool* dead_servers;
}
if (is_master_key_set)
- for (unsigned int x= 0; x < number_of_keys; ++x)
+ for (unsigned int x= 0; x < number_of_keys; x++)
hash[x]= master_server_key;
else
- for (unsigned int x= 0; x < number_of_keys; ++x)
+ for (unsigned int x= 0; x < number_of_keys; x++)
hash[x]= memcached_generate_hash(ptr, keys[x], key_length[x]);
rc= replication_binary_mget(ptr, hash, dead_servers, keys,