{
memcached_result_st *result_buffer= &ptr->result;
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
{
*error= MEMCACHED_NOT_SUPPORTED;
return NULL;
{
memcached_server_st *server;
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
{
*error= MEMCACHED_NOT_SUPPORTED;
return NULL;
uint32_t dummy_flags;
memcached_return dummy_error;
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
{
*error= MEMCACHED_NOT_SUPPORTED;
return NULL;
unsigned int master_server_key= (unsigned int)-1; /* 0 is a valid server id! */
bool is_master_key_set= false;
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
return MEMCACHED_NOT_SUPPORTED;
LIBMEMCACHED_MEMCACHED_MGET_START();
memcached_return rc;
memcached_stat_st *stats;
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
{
*error= MEMCACHED_NOT_SUPPORTED;
return NULL;
continue;
}
- if (ptr->flags & MEM_USE_UDP)
+ unlikely (ptr->flags & MEM_USE_UDP)
continue;
rrc= memcached_response(&ptr->hosts[x], buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
valgrind:
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp
+cachegrind:
+ rm cachegrind.out.*
+ libtool --mode=execute valgrind --tool=cachegrind --branch-sim=yes testapp
+ cg_annotate cachegrind.out.* --auto=yes > /tmp/calgrind.out
+
test-no-outputdiff: testapp
./testapp > /dev/null
@echo "Test completed"