Skip to content
Browse files

MB-4003 - Allow empty binary stats values

Change-Id: I167537f1b80ecf1ff1146b9618ae40e1fff9c6d8
Reviewed-on: http://review.couchbase.org/7148
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 3fe0bee commit f6e8c32d75556884b355536a56b942b5d1e82f27 @steveyen steveyen committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 cproxy_protocol_a2b.c
View
4 cproxy_protocol_a2b.c
@@ -1010,8 +1010,8 @@ void a2b_process_downstream_response(conn *c) {
assert(c->noreply == false);
if (keylen > 0) {
- assert(it != NULL); // Holds the stat value.
- assert(it->nbytes > 2);
+ assert(it != NULL); // Holds the stat value.
+ assert(it->nbytes >= 2); // Note: ep-engine-to-mc_couch can return empty STAT val.
assert(bodylen > keylen);
assert(d->merger != NULL);

0 comments on commit f6e8c32

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