MB-19732: Record time for all DCP consumer messages 27/64727/7
authorDaniel Owen <owend@couchbase.com>
Mon, 25 Apr 2016 13:06:41 +0000 (14:06 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 7 Jun 2016 15:15:14 +0000 (15:15 +0000)
commit9b77971b0201b20f7961592bd2943ba1e3fc98cb
treee1f1646a71922a606808ff94ad503f28020a44e9
parent62563bc5f0c59b823a9ee91c02a9012879fcf083
MB-19732: 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/64727
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/dcp-consumer.cc
src/dcp-consumer.h