From 6aaaeebb159341080bc4eced8da18ceacca2ac69 Mon Sep 17 00:00:00 2001 From: avelicka Date: Tue, 29 Aug 2023 18:47:14 +0300 Subject: [PATCH 1/2] Fix #442914 bug --- ext/libmemcached-0.32/libmemcached/memcached_purge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 6dfd4ca9e0ed0b4a33b727f3f25ec1b086167e6d Mon Sep 17 00:00:00 2001 From: avelicka Date: Fri, 1 Sep 2023 17:35:26 +0300 Subject: [PATCH 2/2] Up --- CHANGELOG | 2 ++ lib/memcached/version.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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/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