memcached_io_reset passed wrong struct
authorSteve Yen <steve.yen@gmail.com>
Tue, 20 Jan 2009 20:59:52 +0000 (12:59 -0800)
committerSteve Yen <steve.yen@gmail.com>
Tue, 20 Jan 2009 20:59:52 +0000 (12:59 -0800)
libmemcached/memcached_get.c

index a7bf3a963b8f4b422f38595176321a85bf8bab58..2cc40151b4bcf4911549af13eb9e6b10e692c62a 100644 (file)
@@ -286,7 +286,7 @@ static memcached_return binary_mget_by_key(memcached_st *ptr,
                                       ptr->flags & MEM_BINARY_PROTOCOL);
     unlikely (vk != MEMCACHED_SUCCESS) {
       if (x > 0)
-        memcached_io_reset(ptr);
+        memcached_io_reset(&ptr->hosts[server_key]);
       return vk;
     }