X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fquit.cc;h=4bf72f64adf94b985e4a2eb9506414de171122a5;hb=0d34e2e86b16fcd4d459e684f56cb88296cea2a1;hp=2cfc44b56dab85abc371502d818ddca1f1caa317;hpb=015b6142ad6c3b496437d397416aacb776a42aed;p=m6w6%2Flibmemcached diff --git a/libmemcached/quit.cc b/libmemcached/quit.cc index 2cfc44b5..4bf72f64 100644 --- a/libmemcached/quit.cc +++ b/libmemcached/quit.cc @@ -46,7 +46,7 @@ will force data to be completed. */ -void memcached_quit_server(memcached_server_st *ptr, bool io_death) +void memcached_quit_server(memcached_instance_st *ptr, bool io_death) { if (ptr->fd != INVALID_SOCKET) { @@ -58,7 +58,9 @@ void memcached_quit_server(memcached_server_st *ptr, bool io_death) if (ptr->root->flags.binary_protocol) { protocol_binary_request_quit request= {}; // = {.bytes= {0}}; - request.message.header.request.magic = PROTOCOL_BINARY_REQ; + + initialize_binary_request(ptr, request.message.header); + request.message.header.request.opcode = PROTOCOL_BINARY_CMD_QUIT; request.message.header.request.datatype = PROTOCOL_BINARY_RAW_BYTES;