Remove special condition for block and version.
authorBrian Aker <brian@tangent.org>
Sun, 13 Feb 2011 02:45:11 +0000 (18:45 -0800)
committerBrian Aker <brian@tangent.org>
Sun, 13 Feb 2011 02:45:11 +0000 (18:45 -0800)
libmemcached/version.c

index 8fcc11a0fb6b95b2ed95eedd17a9a69735f768f3..cb8fa0e057f26a7edf4991d394da854ccffff2ec 100644 (file)
@@ -13,18 +13,13 @@ memcached_return_t memcached_version(memcached_st *ptr)
   if (ptr->flags.use_udp)
     return MEMCACHED_NOT_SUPPORTED;
 
-  bool was_blocking= ptr->flags.no_block;
   memcached_return_t rc;
 
-  ptr->flags.no_block= false;
-
   if (ptr->flags.binary_protocol)
     rc= memcached_version_binary(ptr);
   else
     rc= memcached_version_textual(ptr);      
 
-  ptr->flags.no_block= was_blocking;
-
   return rc;
 }