MB-24066/MB-22178: Set opencheckpointid to 1 after rollback 37/77837/3
authorDaniel Owen <owend@couchbase.com>
Mon, 8 May 2017 17:00:09 +0000 (18:00 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 8 May 2017 19:41:53 +0000 (19:41 +0000)
commit879f176170b4e68e4e9695cf9228d09bab2f52ba
tree68ee145d3f8c221c3344e76c052c3ce6a7fcc9f7
parent92330468367f6558d477ae129a9078a158bc5481
MB-24066/MB-22178: Set opencheckpointid to 1 after rollback

An opencheckpoint of 0 has the special meaning of being in a backfill
phase.

Therefore after performing a rollback we must ensure the
opencheckpointid is reset to 1.  This is the value used when the
vbucket is originally intialised.

Change-Id: I6b97faa7b502406961a4b48ad7affdbf6bc30512
Reviewed-on: http://review.couchbase.org/77837
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
src/ep.cc
tests/module_tests/evp_store_rollback_test.cc