MB-20697: Return false if commit2couchstore fails 93/67093/3
authorDave Rigby <daver@couchbase.com>
Fri, 26 Aug 2016 18:29:43 +0000 (19:29 +0100)
committerDave Finlay <dave.finlay@couchbase.com>
Wed, 31 Aug 2016 00:42:36 +0000 (00:42 +0000)
commita39687c62598856ea82b361f9541ebca7f6f4feb
treeadfa9081a37c1bc7160cb1dd8a429827717e702b
parent8734958cbfc7a326570ef415468934f1ba5ed5d4
MB-20697: Return false if commit2couchstore fails

This ensures that callers are notified of the failure, and
specifically we correctly increment the ep_item_commit_failed stat

Change-Id: I56f2591479c45c03fba184236aa3790a67290b38
Reviewed-on: http://review.couchbase.org/67093
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Well-Formed: buildbot <build@couchbase.com>
src/couch-kvstore/couch-kvstore.cc
tests/ep_testsuite.cc