MB-21769: Fix vbstate snap start/end off by one 40/70340/4
authorJim Walker <jim@couchbase.com>
Thu, 24 Nov 2016 10:41:25 +0000 (10:41 +0000)
committerDave Rigby <daver@couchbase.com>
Fri, 25 Nov 2016 07:56:34 +0000 (07:56 +0000)
commit36d700b1161fbc0afdea6e45e8431ee920704a8c
treeaddc956d8fce5cb51d42fbef30082e869b1f73b7
parent1b94e9c57e293011ddcf21e457d2f116fa142786
MB-21769: Fix vbstate snap start/end off by one

Recent changes to vbstate writing introduced an edge case regression.
If we force shutdown and had empty active vbuckets, after warmup
we will expose an incorrect failover table as we have an entry
for seq 1, yet the VB has high-seq of 0.

Change-Id: Iee67f71ce46c8eaf4f2cd822103354dcdecc04d8
Reviewed-on: http://review.couchbase.org/70340
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/ep.cc
tests/ep_test_apis.cc
tests/ep_test_apis.h
tests/ep_testsuite_basic.cc