lcb_respexists_is_found returns true for deleted documents.
We could either add a lcb_respexists_is_deleted api, or just have
is_found return false if the doc's deleted flag is set.  I chose
the latter.
Tested-by: Build Bot
@@ -26,7 +26,7 @@ LIBCOUCHBASE_API lcb_STATUS lcb_respexists_status(const lcb_RESPEXISTS *resp)
LIBCOUCHBASE_API int lcb_respexists_is_found(const lcb_RESPEXISTS *resp)
{
- return resp->ctx.rc == LCB_SUCCESS;
+ return resp->ctx.rc == LCB_SUCCESS && !resp->deleted;
}
LIBCOUCHBASE_API lcb_STATUS lcb_respexists_error_context(const lcb_RESPEXISTS *resp,
