MB-17885: Update flow control bytesSent correctly on DCP producer 75/59575/4
authorManu Dhundi <manu@couchbase.com>
Mon, 8 Feb 2016 17:42:25 +0000 (09:42 -0800)
committerChiyoung Seo <chiyoung@couchbase.com>
Tue, 9 Feb 2016 19:07:50 +0000 (19:07 +0000)
commitb7ee24c8edf875cdc3ad57103a3e5445ee700c1a
treed76b7b2ce2a41e561723e37d6c1a7928748dce14
parentae39d7f216ae3d75e93aceda8d9b9992c5f7a1c4
MB-17885: Update flow control bytesSent correctly on DCP producer

This is a fix for a regression introduced recently. Also this adds
a DCP test case to test flow control behavior of DCP producer.

Change-Id: Ia56858cb9e687a0a045b582c18e4b68948cb460c
Reviewed-on: http://review.couchbase.org/59575
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
src/dcp-producer.cc
tests/ep_testsuite.cc
tests/mock/mock_dcp.cc