MB-21568: Reconcile hashtable with disk following rollback 25/69725/16
authorDave Rigby <daver@couchbase.com>
Mon, 7 Nov 2016 06:36:42 +0000 (22:36 -0800)
committerDave Rigby <daver@couchbase.com>
Wed, 16 Nov 2016 18:02:44 +0000 (18:02 +0000)
commitb20aeb6170dd9092e97c5e9346125747f3312a39
treeee5646b4af64ffd5a761cd991f8f21c6428e0fe7
parent96d7d559241c25245ebc50a6fc006fdc01e24771
MB-21568: Reconcile hashtable with disk following rollback

After rolling back the disk store to the requested seqno a scan of the
vbucket's checkpoint must occur. Any item in the checkpoint with
a seqno > than the rollback must be dropped or rolled back.

+ A missing close is addressed by using a wrapper class that will
  RAII close each file opened in the rollback code.

Change-Id: Iabe43f59ed40931c1c97b65147b7a414d4ff7cc5
Reviewed-on: http://review.couchbase.org/69725
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/couch-kvstore/couch-kvstore.cc
src/couch-kvstore/couch-kvstore.h
src/ep.cc
src/ep.h
tests/module_tests/evp_store_rollback_test.cc
tests/module_tests/evp_store_test.h