MB-19636: Initialise failovers correctly from 2.5.x vbstate 56/64156/6
authorJim Walker <jim@couchbase.com>
Tue, 17 May 2016 16:41:10 +0000 (17:41 +0100)
committerDave Rigby <daver@couchbase.com>
Thu, 19 May 2016 10:31:48 +0000 (10:31 +0000)
commitcac6c736db563146bbddf3a5c3486f75b9d99db2
tree1be88cd67425bb19922020d700289a3a37039cc5
parent2c30a275aa14469b63bb952d116fc18481a22f02
MB-19636: Initialise failovers correctly from 2.5.x vbstate

(Note: backport of MB-19635 to 3.0.x branch).

When loading a vb file, don't force the failover table data
to be ("[{\"id\":0,\"seq\":0}]"); if the file doesn't contain
any data.

Change-Id: I41673bf848fcbab9b616edec5c7fd2ab9a3ddd6b
Reviewed-on: http://review.couchbase.org/64156
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
CMakeLists.txt
src/couch-kvstore/couch-kvstore.cc
tests/ep_test_apis.h
tests/ep_testsuite.cc