Skip to content

Commit d4bb217

Browse files
committed
Pass cas from oneEntity call to one by id.
Closes #1388.
1 parent 9539013 commit d4bb217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByIdOperationSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private void rejectInvalidTransactionalOptions() {
157157
public Mono<RemoveResult> oneEntity(Object entity) {
158158
ReactiveRemoveByIdSupport op = new ReactiveRemoveByIdSupport(template, domainType, scope, collection, options,
159159
persistTo, replicateTo, durabilityLevel, template.support().getCas(entity));
160-
return op.one(template.support().getId(entity).toString());
160+
return op.withCas(template.support().getCas(entity)).one(template.support().getId(entity).toString());
161161
}
162162

163163
@Override

0 commit comments

Comments
 (0)