summaryrefslogtreecommitdiff
path: root/proto_text.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-09-27 23:24:54 -0700
committerdormando <dormando@rydia.net>2022-10-20 14:43:53 -0700
commite2d62c6589ea9b94cb66df57c6d08eb346c4b8c4 (patch)
tree24bc4e0ea705766691111470233ba0b63b75ba80 /proto_text.c
parent00259610a9ffad1f6628f0125ab76691782fdb56 (diff)
downloadmemcached-e2d62c6589ea9b94cb66df57c6d08eb346c4b8c4.tar.gz
meta: remove "meta_response_old" start option
was a temporary hidden option for a few early adopters to use while migrating from OK to HD status codes.
Diffstat (limited to 'proto_text.c')
-rw-r--r--proto_text.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/proto_text.c b/proto_text.c
index 16db28a..6fd1212 100644
--- a/proto_text.c
+++ b/proto_text.c
@@ -62,11 +62,7 @@ static void _finalize_mset(conn *c, enum store_item_type ret) {
switch (ret) {
case STORED:
- if (settings.meta_response_old) {
- memcpy(p, "OK", 2);
- } else {
- memcpy(p, "HD", 2);
- }
+ memcpy(p, "HD", 2);
// Only place noreply is used for meta cmds is a nominal response.
if (c->noreply) {
resp->skip = true;
@@ -1136,11 +1132,7 @@ static void process_mget_command(conn *c, token_t *tokens, const size_t ntokens)
memcpy(p, "VA ", 3);
p = itoa_u32(it->nbytes-2, p+3);
} else {
- if (settings.meta_response_old) {
- memcpy(p, "OK", 2);
- } else {
- memcpy(p, "HD", 2);
- }
+ memcpy(p, "HD", 2);
p += 2;
}
@@ -1658,11 +1650,7 @@ static void process_mdelete_command(conn *c, token_t *tokens, const size_t ntoke
// Clients can noreply nominal responses.
if (c->noreply)
resp->skip = true;
- if (settings.meta_response_old) {
- memcpy(resp->wbuf, "OK", 2);
- } else {
- memcpy(resp->wbuf, "HD", 2);
- }
+ memcpy(resp->wbuf, "HD", 2);
} else {
pthread_mutex_lock(&c->thread->stats.mutex);
c->thread->stats.slab_stats[ITEM_clsid(it)].delete_hits++;
@@ -1672,11 +1660,7 @@ static void process_mdelete_command(conn *c, token_t *tokens, const size_t ntoke
STORAGE_delete(c->thread->storage, it);
if (c->noreply)
resp->skip = true;
- if (settings.meta_response_old) {
- memcpy(resp->wbuf, "OK", 2);
- } else {
- memcpy(resp->wbuf, "HD", 2);
- }
+ memcpy(resp->wbuf, "HD", 2);
}
goto cleanup;
} else {
@@ -1837,11 +1821,7 @@ static void process_marithmetic_command(conn *c, token_t *tokens, const size_t n
memcpy(p, "VA ", 3);
p = itoa_u32(vlen, p+3);
} else {
- if (settings.meta_response_old) {
- memcpy(p, "OK", 2);
- } else {
- memcpy(p, "HD", 2);
- }
+ memcpy(p, "HD", 2);
p += 2;
}