MB-20798: Allow CAS and seqno to be generated consistently 70/67670/16
authorJim Walker <jim@couchbase.com>
Tue, 27 Sep 2016 11:26:44 +0000 (12:26 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 12 Oct 2016 07:42:38 +0000 (07:42 +0000)
commit7d7c589aa28d053f8ce3c8b99b0a2c12db571cc8
treec23dfa5ec28bb5cd311e6bd139aab6826cbe2eec
parentb56580678c31769cbcf1654ff9776dd1b74c3006
MB-20798: Allow CAS and seqno to be generated consistently

Add a new option to queueDirty so that it can generate
and assign the CAS to the StoredValue.

This allows us to create a seqno and CAS under the same
lock, thus seqno and CAS will be incrementing when
a checkpoint is serially observed.

Change-Id: Ic24619326a4e8722613824f2253b606d228e98c7
Reviewed-on: http://review.couchbase.org/67670
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/checkpoint.cc
src/checkpoint.h
src/ep.cc
src/ep.h
src/ep_types.h
tests/module_tests/checkpoint_test.cc