MB-19897: Record time for all DCP consumer messages 79/64879/3
authorDaniel Owen <owend@couchbase.com>
Mon, 25 Apr 2016 13:06:41 +0000 (14:06 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 13 Jun 2016 09:25:22 +0000 (09:25 +0000)
commit061e360a8f3c2b437e3db3e67556144257495ca8
tree58be38770767dce408e61722216f7cd9b815d20b
parent7c65b732c0099c0ad84e7d70506625e694051495
MB-19897: Record time for all DCP consumer messages

The DCP documentation states that the consumer should see
some sort of message or a No-Op message in a period
equal to twice the noop interval otherwise it should close
its connection.  See documentation/commands/no-op.md in
https://github.com/couchbaselabs/dcp-documentation

This patch changes from checking only the receival of a
no-op message to check for recieving the following messages
- add stream
- close stream
- deletion
- expiration
- flush
- mutation
- set VBucket state
- snapshot Marker
- stream end

Change-Id: Ib2268dba339cbf3701f3c7782ee8256bddc79ba3
Reviewed-on: http://review.couchbase.org/64879
Tested-by: buildbot <build@couchbase.com>
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/dcp-consumer.cc
src/dcp-consumer.h