Permalink
Browse files

Moxi returns END when key with getl is not found

ep-engine returns NOT_FOUND when getl is done with non-existent key but moxi converts
the NOT_FOUND to END and send END to client

Change-Id: Ib1114094064e1bb7cc9ae42e412f3ab3a934fe0c
Reviewed-on: http://review.couchbase.org/9551
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 1fb2447 commit 120c83da7a4f3130366eba3d7234a16e32d28819 nimish gupta committed with steveyen Sep 13, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 cproxy_protocol_a2a.c
View
@@ -164,6 +164,13 @@ void cproxy_process_a2a_downstream(conn *c, char *line) {
d->target_host_ident = NULL;
conn_set_state(c, conn_pause);
+ } else if (strncmp(line, "NOT_FOUND", 9) == 0) {
+ d->upstream_suffix = "NOT_FOUND\r\n";
+ d->upstream_suffix_len = 0;
+ d->upstream_retry = 0;
+ d->target_host_ident = NULL;
+
+ conn_set_state(c, conn_pause);
} else {
conn_set_state(c, conn_pause);

0 comments on commit 120c83d

Please sign in to comment.