From: Brian Aker Date: Fri, 29 Jun 2012 06:34:38 +0000 (-0700) Subject: Remove extra white space in get command. X-Git-Tag: 1.0.9~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=81e8f0486563e3bcf9e5bdb634af45c6767009cc;p=awesomized%2Flibmemcached Remove extra white space in get command. --- diff --git a/libmemcached/get.cc b/libmemcached/get.cc index 88220e6b..cc6af2d8 100644 --- a/libmemcached/get.cc +++ b/libmemcached/get.cc @@ -202,8 +202,8 @@ static memcached_return_t memcached_mget_by_key_real(memcached_st *ptr, bool mget_mode) { bool failures_occured_in_sending= false; - const char *get_command= "get "; - uint8_t get_command_length= 4; + const char *get_command= "get"; + uint8_t get_command_length= 3; unsigned int master_server_key= (unsigned int)-1; /* 0 is a valid server id! */ memcached_return_t rc; @@ -270,8 +270,8 @@ static memcached_return_t memcached_mget_by_key_real(memcached_st *ptr, if (ptr->flags.support_cas) { - get_command= "gets "; - get_command_length= 5; + get_command= "gets"; + get_command_length= 4; } /* @@ -299,9 +299,9 @@ static memcached_return_t memcached_mget_by_key_real(memcached_st *ptr, libmemcached_io_vector_st vector[]= { { get_command, get_command_length }, + { memcached_literal_param(" ") }, { memcached_array_string(ptr->_namespace), memcached_array_size(ptr->_namespace) }, - { keys[x], key_length[x] }, - { memcached_literal_param(" ") } + { keys[x], key_length[x] } };