MB-20852 [2/N]: Convert queue_operation to scoped enum 60/68160/12
authorDave Rigby <daver@couchbase.com>
Thu, 29 Sep 2016 13:52:16 +0000 (14:52 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 31 Oct 2016 15:08:14 +0000 (15:08 +0000)
commit42745d14642d298915ae9433de2aac8da8af8b98
treebdc2a5ea5f534c51ea5d4065326ca3e5c808ab05
parent283a936628c86033e39bc0f686405ac8669ea22b
MB-20852 [2/N]: Convert queue_operation to scoped enum

In preparation for adding new queue_op for setVBucketState, convert to
a typesafe C++11 scoped enum. Improve the documentation around
queue_op, and related classes Checkpoint, CheckpointCursor.

Also improve the output streaming (operator<<) for Checkpoint class.

Change-Id: I8f29b8e9e8915a68e31550b78bf3131b3737e2d7
Reviewed-on: http://review.couchbase.org/68160
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/checkpoint.cc
src/checkpoint.h
src/dcp/stream.cc
src/forest-kvstore/forest-kvstore.cc
src/item.cc
src/item.h
src/tapconnection.cc
src/tapconnection.h
tests/module_tests/checkpoint_test.cc