using consistentWith with query is impossible
Description
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Unresolved
Pinned fields
Click on the next to a field label to start pinning.
Created October 12, 2022 at 2:02 PM
Updated November 3, 2022 at 6:43 PM
Instabug
CB++ only applies the mutation state if scan consistency is not defined.
https://github.com/couchbaselabs/couchbase-cxx-client/blob/ab0fee47a28f5d00b678e289929eaea9ba3662ee/core/operations/document_query.cxx#L111-L136
The SDK always sets a scan consistency even if not defined in the options which makes using consistentWith impossible as CB++ never includes the scan vector in the query request
https://github.com/couchbase/couchnode/blob/1ccbf734fda2b9e87d414894c131b13ce0cec852/lib/bindingutilities.ts#L131-L148