MB-23712: Check for invalid cas before setting value for deleted body 52/76252/7
authorDave Rigby <daver@couchbase.com>
Tue, 4 Apr 2017 13:31:52 +0000 (14:31 +0100)
committerSriram Ganesan <sriram@couchbase.com>
Sat, 8 Apr 2017 01:24:22 +0000 (01:24 +0000)
commitfa00d34f7c147ab0aecc64b1d85f879986c1bb86
tree61e774f9063e8ed04829939d9cd41c95f15b1efe
parentcd07e60188ea55b77d411d3b54e7f7f0ba92383b
MB-23712: Check for invalid cas before setting value for deleted body

Before setting the value for a deleted item, check to see if the
incoming cas matches the existing cas

Change-Id: If61e47f0c29ede41778f0f3d817082a83ec8f851
Reviewed-on: http://review.couchbase.org/76252
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Sriram Ganesan <sriram@couchbase.com>
src/vbucket.cc
tests/ep_testsuite_basic.cc