Break up command from key.
authorBrian Aker <brian@tangent.org>
Sat, 29 Dec 2012 12:17:37 +0000 (07:17 -0500)
committerBrian Aker <brian@tangent.org>
Sat, 29 Dec 2012 12:17:37 +0000 (07:17 -0500)
libmemcached/get.cc

index 88f8b56a1ed4285814c3248cbb47304cb8459d88..7d2731763c302e9a27a76c7fb0222c98453142b0 100644 (file)
@@ -315,7 +315,7 @@ static memcached_return_t memcached_mget_by_key_real(memcached_st *ptr,
       }
       hosts_connected++;
 
-      if ((memcached_io_writev(instance, vector, 4, false)) == false)
+      if ((memcached_io_writev(instance, vector, 1, false)) == false)
       {
         failures_occured_in_sending= true;
         continue;
@@ -324,7 +324,7 @@ static memcached_return_t memcached_mget_by_key_real(memcached_st *ptr,
       memcached_instance_response_increment(instance);
       WATCHPOINT_ASSERT(instance->cursor_active_ == 1);
     }
-    else
+
     {
       if ((memcached_io_writev(instance, (vector + 1), 3, false)) == false)
       {