MB-16181: Transfer the collection name over DCP 35/78135/12
authorJim Walker <jim@couchbase.com>
Tue, 21 Mar 2017 15:15:16 +0000 (15:15 +0000)
committerDave Rigby <daver@couchbase.com>
Tue, 23 May 2017 17:58:05 +0000 (17:58 +0000)
commite708fe3f84c4df4d77ee69069fd96a27a6a43b5b
treecf09adc077d4bd8a67a6b2ce644aec530f003738
parent126ed5a470878073cbf0dd9a989722962de28354
MB-16181: Transfer the collection name over DCP

The DCP mutation/deletion callbacks now take a collection_len field,
the data in this field will be sent over DCP streams when a client
has signalled they want collection-aware DCP.

For example "dairy::cheese" will set a collection length of 5,
default collection documents, set a collection length of 0.

Change-Id: I303d9b18bc5d0fd0968708d84e461ee59577c003
Reviewed-on: http://review.couchbase.org/78135
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
CMakeLists.txt
src/dcp/producer.cc
src/ep_engine.cc
src/ep_engine.h
src/stats.cc [new file with mode: 0644]
tests/mock/mock_dcp.cc