Skip to content

Commit 7df6825

Browse files
author
Allen lai
committed
Bug#19172212 InnoDB Memcached Plugin "gets" command
We don't support multi-gets yet. This will be addressed in worklog 6650. We block multi-gets for now. Just return an error message to client instead of returning wrong results. Approved by Jimmy on IM.
1 parent fca438c commit 7df6825

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • plugin/innodb_memcached/daemon_memcached/daemon

plugin/innodb_memcached/daemon_memcached/daemon/memcached.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,6 +4043,12 @@ static inline char* process_get_command(conn *c, token_t *tokens, size_t ntokens
40434043
token_t *key_token = &tokens[KEY_TOKEN];
40444044
assert(c != NULL);
40454045

4046+
/* We temporarily block the mgets commands till wl6650 checked in. */
4047+
if ((key_token + 1)->length > 0) {
4048+
out_string(c, "We temporarily don't support multiple get option.");
4049+
return NULL;
4050+
}
4051+
40464052
do {
40474053
while(key_token->length != 0) {
40484054

0 commit comments

Comments
 (0)