server_key= memcached_generate_hash(ptr, key, key_length);
- protocol_binary_request_incr request= {0};
+ protocol_binary_request_incr request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= cmd;
size_t key_length,
int flush)
{
- protocol_binary_request_delete request= {0};
+ protocol_binary_request_delete request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_DELETE;
time_t expiration)
{
unsigned int x;
- protocol_binary_request_flush request= {0};
+ protocol_binary_request_flush request= {.bytes= {0}};
unlikely (ptr->number_of_hosts == 0)
return MEMCACHED_NO_SERVERS;
continue;
}
- protocol_binary_request_getk request= {0};
+ protocol_binary_request_getk request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
if (number_of_keys == 1)
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_GETK;
/*
* Send a noop command to flush the buffers
*/
- protocol_binary_request_noop request= {0};
+ protocol_binary_request_noop request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_NOOP;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
if (ptr->root->flags & MEM_BINARY_PROTOCOL)
{
- protocol_binary_request_quit request = {0};
+ protocol_binary_request_quit request = {.bytes= {0}};
request.message.header.request.magic = PROTOCOL_BINARY_REQ;
request.message.header.request.opcode = PROTOCOL_BINARY_CMD_QUIT;
request.message.header.request.datatype = PROTOCOL_BINARY_RAW_BYTES;
memcached_return rc;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
- protocol_binary_request_stats request= {0};
+ protocol_binary_request_stats request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_STAT;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
uint64_t cas,
memcached_storage_action verb)
{
- protocol_binary_request_set request= {0};
+ protocol_binary_request_set request= {.bytes= {0}};
size_t send_length= sizeof(request.bytes);
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
{
memcached_return rc;
unsigned int x;
- protocol_binary_request_version request= {0};
+ protocol_binary_request_version request= { .bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_VERSION;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;