MB-24034 [Ephemeral]: Fix incorrect NumDeletedItems after un-delete 86/77186/3
authorDave Rigby <daver@couchbase.com>
Fri, 21 Apr 2017 15:50:31 +0000 (16:50 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 26 Apr 2017 16:25:23 +0000 (16:25 +0000)
commitb84bb7252a7c267b611c63cec633a5a9fbb1eee3
treee8531a070ef91f2169e7e3a11936e0117ef99b8e
parent0bfe53645a72821741a96176483407b8348447a8
MB-24034 [Ephemeral]: Fix incorrect NumDeletedItems after un-delete

In an Ephemeral bucket, if an item is created, deleted, and then
re-created, the numDeletedItem count in the SeqList is incorrect - we
fail to decrement the deleted item count when it's re-created.

Change-Id: Iba9b77be4814ebd81f252c37e4c934c65965532f
Reviewed-on: http://review.couchbase.org/77186
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
src/ephemeral_vb.cc
src/linked_list.cc
src/linked_list.h
src/seqlist.h
tests/module_tests/basic_ll_test.cc
tests/module_tests/ephemeral_vb_test.cc