Skip to content
Browse files

MB-5488: SERVER_ERROR flush_all not supported

Change-Id: Ia080f82c03a23b3ee059471d37f63174e279be7d
Reviewed-on: http://review.couchbase.org/16989
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 1caa47d commit 52a5fa887bfff0bf719c4ee5f29634dd8707500e @steveyen steveyen committed Jun 7, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 cproxy_protocol_a2b.c
View
10 cproxy_protocol_a2b.c
@@ -849,6 +849,16 @@ void a2b_process_downstream_response(conn *c) {
case PROTOCOL_BINARY_CMD_FLUSH:
conn_set_state(c, conn_pause);
+ if (uc != NULL) {
+ if (status == PROTOCOL_BINARY_RESPONSE_NOT_SUPPORTED) {
+ if (d->upstream_suffix != NULL &&
+ d->upstream_suffix_len == 0 &&
+ strncmp(d->upstream_suffix, "OK\r\n", 4) == 0) {
+ d->upstream_suffix = "SERVER_ERROR flush_all not supported\r\n";
+ }
+ }
+ }
+
// TODO: Handle flush_all's expiration parameter against
// the front_cache.
//

0 comments on commit 52a5fa8

Please sign in to comment.
Something went wrong with that request. Please try again.