The get_if doesn't support deleted values. Hence, it shouldn't be
part of the options.
Change-Id: I12270a8e61ec7a04b3d166626eb534736e7e403e
Reviewed-on: http://review.couchbase.org/77746
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
TRACK_REFERENCE |
DELETE_TEMP |
HIDE_LOCKED_CAS |
- ALLOW_META_ONLY |
- GET_DELETED_VALUE);
+ ALLOW_META_ONLY);
if (ii == 1 || kvBucket->getItemEvictionPolicy() == FULL_EVICTION) {
options = static_cast<get_options_t>(int(options) | QUEUE_BG_FETCH);
}
[](const item_info&) { return true; });
check(!doc.second, "non-existing document should not be found");
+ checkeq(ENGINE_SUCCESS, del(h, h1, key.c_str(), 0, 0),
+ "Failed remove with value");
+
+ doc = h1->get_if(h,
+ nullptr,
+ DocKey(key, testHarness.doc_namespace),
+ 0,
+ [](const item_info&) { return true; });
+ check(!doc.second, "deleted document should not be found");
+
return SUCCESS;
}