[BP] MB-16915: Remove cyclic reference between DcpConsumer and PassiveStream. 49/57449/2
authorManu Dhundi <manu@couchbase.com>
Thu, 3 Dec 2015 21:32:35 +0000 (13:32 -0800)
committerChiyoung Seo <chiyoung@couchbase.com>
Thu, 3 Dec 2015 23:35:57 +0000 (23:35 +0000)
commitad065cb4450ebcd2db8bd44419e5563b47345807
treed0cc11077614753ef81348e906ff26f36c935172
parent8b30a560bc65c42c68bda24c9d6e0c54b3202d97
[BP] MB-16915: Remove cyclic reference between DcpConsumer and PassiveStream.

DcpConsumer holds a reference to PassiveStream and vice versa. We must
make sure that one of them (DcpConsumer here) releases the reference
to another in a function other than the object destructor.

Change-Id: I8e5c262bc5ac50342f85ba80d481987a26a7a21d
Reviewed-on: http://review.couchbase.org/57429
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-on: http://review.couchbase.org/57449
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
src/dcp-consumer.cc
tests/ep_testsuite.cc