Skip to content

Commit

Permalink
Use scope and collection in transaction in findByQuery.count(). (#1868)
Browse files Browse the repository at this point in the history
Closes #1862.
  • Loading branch information
mikereiche committed Jan 18, 2024
1 parent f1df93f commit b5dc1a2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ public Mono<Long> count() {
: 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);
}
});

Expand Down

0 comments on commit b5dc1a2

Please sign in to comment.