projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
98275f5
)
Remove extra white space in get command.
author
Brian Aker
<brian@tangent.org>
Fri, 29 Jun 2012 06:34:38 +0000
(23:34 -0700)
committer
Brian Aker
<brian@tangent.org>
Fri, 29 Jun 2012 06:34:38 +0000
(23:34 -0700)
libmemcached/get.cc
patch
|
blob
|
history
diff --git
a/libmemcached/get.cc
b/libmemcached/get.cc
index 88220e6bd67eb1c67998c38de4034519e824f3b6..cc6af2d83357cf4c56e48f7dc879a7b87a4df311 100644
(file)
--- 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;
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;
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)
{
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 },
libmemcached_io_vector_st vector[]=
{
{ get_command, get_command_length },
+ { memcached_literal_param(" ") },
{ memcached_array_string(ptr->_namespace), memcached_array_size(ptr->_namespace) },
{ memcached_array_string(ptr->_namespace), memcached_array_size(ptr->_namespace) },
- { keys[x], key_length[x] },
- { memcached_literal_param(" ") }
+ { keys[x], key_length[x] }
};
};