diff --git a/CHANGELOG b/CHANGELOG index bf80bc16..69d9fabf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +v1.8.1. Fix memcached bug: https://bugs.launchpad.net/libmemcached/+bug/442914 + v1.8.0. Add support for multi-entry CAS (fbogsany). Make rails client .delete method more consistent with other APIs diff --git a/ext/libmemcached-0.32/libmemcached/memcached_purge.c b/ext/libmemcached-0.32/libmemcached/memcached_purge.c index 40c8ad61..9e5e31ab 100644 --- a/ext/libmemcached-0.32/libmemcached/memcached_purge.c +++ b/ext/libmemcached-0.32/libmemcached/memcached_purge.c @@ -10,7 +10,7 @@ memcached_return memcached_purge(memcached_server_st *ptr) if (ptr->root->purging || /* already purging */ (memcached_server_response_count(ptr) < ptr->root->io_msg_watermark && ptr->io_bytes_sent < ptr->root->io_bytes_watermark) || - (ptr->io_bytes_sent > ptr->root->io_bytes_watermark && + (ptr->io_bytes_sent >= ptr->root->io_bytes_watermark && memcached_server_response_count(ptr) < 2)) { return MEMCACHED_SUCCESS; diff --git a/lib/memcached/version.rb b/lib/memcached/version.rb index d558b812..acf2d493 100644 --- a/lib/memcached/version.rb +++ b/lib/memcached/version.rb @@ -1,3 +1,3 @@ class Memcached - VERSION = '1.8.0' + VERSION = '1.8.1' end