diff options
Diffstat (limited to 'proto_text.c')
-rw-r--r-- | proto_text.c | 30 |
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; } |