MB-20852 [12/N]: Add VBucket::getVBucketState method, use vector for VBuckets in Map 89/67889/12
authorDave Rigby <daver@couchbase.com>
Wed, 21 Sep 2016 14:38:47 +0000 (15:38 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 31 Oct 2016 17:57:50 +0000 (17:57 +0000)
commitead5f19f4081cd201a8d28f65cb7916c932337e2
tree6441388d972ecb9bdb880385833d50f63a836374
parent1e08986004c9ddd8a9c41b7708e1be0175b97a76
MB-20852 [12/N]: Add VBucket::getVBucketState method, use vector for VBuckets in Map

Add a method which will encode the current state of the VBucket into a
vbucket_state struct.

Move from a raw array new to std::vector for VBuckets.

Change-Id: I4755568f977b6e97e7ed9e3bdc64a76d842b6ebd
Reviewed-on: http://review.couchbase.org/67889
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>
src/checkpoint.h
src/couch-kvstore/couch-kvstore.cc
src/couch-kvstore/couch-kvstore.h
src/ep.cc
src/forest-kvstore/forest-kvstore.cc
src/forest-kvstore/forest-kvstore.h
src/kvshard.cc
src/kvshard.h
src/kvstore.h
src/vbucket.cc
src/vbucket.h