summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2021-06-09 15:09:53 -0700
committerdormando <dormando@rydia.net>2021-06-10 11:24:15 -0700
commit6a1802cb2a180971c328d9820df23336eec72c0f (patch)
treeb90933420ae79f7e6e95389bdf503f4c73c8c738 /memcached.h
parent3d178cfd3241764acb789c166f1b0209457f2aff (diff)
downloadmemcached-6a1802cb2a180971c328d9820df23336eec72c0f.tar.gz
meta: response code OK -> HD
I had the response code as "HD" in the past, but standardized on OK while merging a number of "OK-like" rescodes together. This was a mistake; as many "generic" memcached response codes use "OK". Most of these are management or specialized uncommon commands. With this, a client response parser can know for sure if a response is to a meta command, or some other command. `-o meta_response_old` starttime option has been added, valid for the next 3 months, which switches the response code back from HD to OK. In case any existing users depended on this and need time to migrate.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 1202fa0..04bd169 100644
--- a/memcached.h
+++ b/memcached.h
@@ -460,6 +460,7 @@ struct settings {
bool drop_privileges; /* Whether or not to drop unnecessary process privileges */
bool watch_enabled; /* allows watch commands to be dropped */
bool relaxed_privileges; /* Relax process restrictions when running testapp */
+ bool meta_response_old; /* use "OK" instead of "HD". for response code TEMPORARY! */
#ifdef EXTSTORE
unsigned int ext_io_threadcount; /* number of IO threads to run. */
unsigned int ext_page_size; /* size in megabytes of storage pages. */