send_length= strlen(command);
rc= MEMCACHED_SUCCESS;
- for (x= 0; x < ptr->number_of_hosts; x++)
+ for (x= 0; x < memcached_server_count(ptr); x++)
{
memcached_return_t rrc;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
rc= MEMCACHED_SUCCESS;
- for (x= 0; x < ptr->number_of_hosts; x++)
+ for (x= 0; x < memcached_server_count(ptr); x++)
{
memcached_return_t rrc;
}
}
- for (x= 0; x < ptr->number_of_hosts; x++)
+ for (x= 0; x < memcached_server_count(ptr); x++)
+ {
if (memcached_server_response_count(&ptr->hosts[x]) > 0)
{
memcached_return_t rrc;
ptr->hosts[x].minor_version= (uint8_t)strtol(p + 1, &p, 10);
ptr->hosts[x].micro_version= (uint8_t)strtol(p + 1, NULL, 10);
}
+ }
return rc;
}