Skip to content

Commit

Permalink
fix naver#487 - fix successs string
Browse files Browse the repository at this point in the history
fix touched success string "OK" to "TOUCHED"
  • Loading branch information
cheesecrust committed Jul 5, 2024
1 parent b0fcd32 commit 071ce06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -13090,8 +13090,8 @@ static void process_touch_command(conn *c, token_t *tokens, const size_t ntokens
assert(c != NULL);
assert(c->ewouldblock == false);

char *key = tokens[KEY_TOKEN].value;
size_t nkey = tokens[KEY_TOKEN].length;
char *key = tokens[KEY_TOKEN].value; // get users key input
size_t nkey = tokens[KEY_TOKEN].length; //

ENGINE_ERROR_CODE ret = ENGINE_SUCCESS;
item_attr attr_data;
Expand Down Expand Up @@ -13121,7 +13121,7 @@ static void process_touch_command(conn *c, token_t *tokens, const size_t ntokens
switch (ret) {
case ENGINE_SUCCESS:
STATS_HITS(c, setattr, key, nkey);
out_string(c, "OK");
out_string(c, "TOUCHED");
break;
case ENGINE_KEY_ENOENT:
STATS_MISSES(c, setattr, key, nkey);
Expand Down

0 comments on commit 071ce06

Please sign in to comment.