MB-23637: Extra logging for dcp-vbtakeover stat & refactor stream type 62/76162/9
authorDaniel Owen <owend@couchbase.com>
Sat, 1 Apr 2017 14:00:18 +0000 (15:00 +0100)
committerDave Rigby <daver@couchbase.com>
Fri, 7 Apr 2017 07:55:26 +0000 (07:55 +0000)
commit836918eb7657a0aec26011ec726f407a90280be3
tree1dd17836b56a413af08c8bed9ca3d54c358743cd
parentb9dffc2b566ec6e67359c87b145dd76ff254c6b8
MB-23637: Extra logging for dcp-vbtakeover stat & refactor stream type

The dcp-vbtakeover stat is critical to the success of rebalance.
Therefore it is useful for debugging future rebalance failures to log
the unexpected paths and error paths.

We want to print the stream type in the logging output.  Therefore the
stream type has been refactored into a enum class and a to_string
method provided to print a textual representation of the type.

Change-Id: I72ce7c6bd1f923f3cfa7557f1b150f97aa5fa7f9
Reviewed-on: http://review.couchbase.org/76162
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/dcp/backfill_disk.cc
src/dcp/producer.cc
src/dcp/stream.cc
src/dcp/stream.h