Sort an option to the correct location.
[m6w6/libmemcached] / libmemcached / util / pool.cc
index 17cff07726e80b49e6a5b921ad3cfa9ae4736cab..0a3ef15f9cb76f0714f96869142a4f87758d852c 100644 (file)
@@ -248,7 +248,7 @@ memcached_st* memcached_pool_pop(memcached_pool_st* pool,
     return NULL;
   }
 
-  if ((*rc= mutex_enter(&pool->mutex)) != MEMCACHED_SUCCESS)
+  if (memcached_failed((*rc= mutex_enter(&pool->mutex))))
   {
     return NULL;
   }