if (sent_length == -1 || (size_t)sent_length != command_length)
rc= MEMCACHED_WRITE_FAILURE;
- else
+ else if ((ptr->root->flags & MEM_NOREPLY) == 0)
memcached_server_response_increment(ptr);
return rc;
if (ptr->flags & MEM_NOREPLY)
{
- memcached_server_response_decrement(&ptr->hosts[server_key]);
return (to_write == 0) ? MEMCACHED_BUFFERED : MEMCACHED_SUCCESS;
}
return MEMCACHED_WRITE_FAILURE;
}
- if (noreply)
- memcached_server_response_decrement(server);
-
if (flush == 0)
return MEMCACHED_BUFFERED;