Use scope and collection in transaction in findByQuery.count(). (#1868)
Closes #1862.
This commit is contained in:
committed by
mikereiche
parent
61e38f57d8
commit
1db7fb95c0
@@ -256,8 +256,9 @@ public class ReactiveFindByQueryOperationSupport implements ReactiveFindByQueryO
|
||||
: rs.query(statement, opts);
|
||||
} else {
|
||||
TransactionQueryOptions opts = buildTransactionOptions(pArgs.getOptions());
|
||||
return (AttemptContextReactiveAccessor.createReactiveTransactionAttemptContext(s.get().getCore(),
|
||||
clientFactory.getCluster().environment().jsonSerializer())).query(statement, opts);
|
||||
JsonSerializer jSer = clientFactory.getCluster().environment().jsonSerializer();
|
||||
return AttemptContextReactiveAccessor.createReactiveTransactionAttemptContext(s.get().getCore(), jSer)
|
||||
.query(OptionsBuilder.queryContext(pArgs.getScope(), pArgs.getCollection(), rs.bucketName()) == null ? null : rs, statement, opts);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user