From 0782a4ac4673c2d32b78bf5fa03b924c7e927bf9 Mon Sep 17 00:00:00 2001 From: Date: Thu, 16 Apr 2009 09:33:40 -0700 Subject: [PATCH] Changed behavior for MEMCACHED_BEHAVIOR_NO_BLOCK to no longer also enable MEMCACHED_BEHAVIOR_BUFFER_REQUESTS --- ChangeLog | 2 ++ docs/memcached_behavior.pod | 4 +--- libmemcached/memcached_behavior.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 223ae66e..8386d7b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + * MEMCACHED_BEHAVIOR_NO_BLOCK no longer also sets MEMCACHED_BEHAVIOR_BUFFER_REQUESTS + 0.28 Tue Apr 14 18:56:28 PDT 2009 * Fixed bug in init sructure (reapplied) * Fixed bug in get/set by key (nikkhils@gmail.com) diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index bce0b9e8..ccccfde2 100755 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -60,9 +60,7 @@ as will attempting to add a UDP server when this behavior has not been enabled. =item MEMCACHED_BEHAVIOR_NO_BLOCK Causes libmemcached(3) to use asychronous IO. This is the fastest transport -available for storage functions. For read operations it is currently -similar in performance to the non-blocking method (this is being -looked into). +available for storage functions. =item MEMCACHED_BEHAVIOR_SND_TIMEOUT diff --git a/libmemcached/memcached_behavior.c b/libmemcached/memcached_behavior.c index e8f65ddf..eb28a373 100644 --- a/libmemcached/memcached_behavior.c +++ b/libmemcached/memcached_behavior.c @@ -50,6 +50,7 @@ memcached_return memcached_behavior_set(memcached_st *ptr, case MEMCACHED_BEHAVIOR_NO_BLOCK: set_behavior_flag(ptr, MEM_NO_BLOCK, data); memcached_quit(ptr); + break; case MEMCACHED_BEHAVIOR_BUFFER_REQUESTS: set_behavior_flag(ptr, MEM_BUFFER_REQUESTS, data); memcached_quit(ptr); -- 2.30.2