MB-17517: return EINVAL instead of assert in arithmetic 68/58868/3
authorSriram Ganesan <sriram@couchbase.com>
Thu, 21 Jan 2016 02:15:56 +0000 (18:15 -0800)
committerChiyoung Seo <chiyoung@couchbase.com>
Thu, 21 Jan 2016 19:34:35 +0000 (19:34 +0000)
commit5372cfdb5658e01d2b8a8e1678d680d2d24699f2
tree567fc9760e7b93bc9134fc2947ee658378ddaa37
parent59a37def75d19bc35b5f3edd7513d4be74b9153d
MB-17517: return EINVAL instead of assert in arithmetic

If a get performed on an item returns a CAS value of zero, then
return EINVAL as opposed to asserting

Change-Id: If3d43c270bcc627029d0954dab0e570c83ddca74
Reviewed-on: http://review.couchbase.org/58868
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
src/ep_engine.h