[Ephemeral]: Rollback to 0 explicitly and improve rollback testing 44/76444/4
authorManu Dhundi <manu@couchbase.com>
Fri, 7 Apr 2017 15:35:10 +0000 (08:35 -0700)
committerDave Rigby <daver@couchbase.com>
Fri, 7 Apr 2017 16:43:32 +0000 (16:43 +0000)
commitdaa705ca89b60c6c0fae260b7d09e2522df6446c
treebe61ce7e910e82fbc3bab746a94c793aa62c6178
parent3831edf4e9b8ee41e3cb5535cf19be499f7a3d48
[Ephemeral]: Rollback to 0 explicitly and improve rollback testing

In ephemeral buckets we currently rollback to 0 even if the request
is to rollback to an intermediate point. This is because we don't have
the luxury of disk snapshots to do an intermediate rollback.

This commit does an explicit rollback to 0, rather than as default.

Also adds a test case that requests a rollback to an intermediate
point.

Change-Id: Ifea06562efaae4ef9b995c718a1b1adc026c4e02
Reviewed-on: http://review.couchbase.org/76444
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/ep_types.h
src/ephemeral_bucket.cc
src/kv_bucket.cc
tests/ep_testsuite_dcp.cc