Closed
Description
Michael Reiche opened DATACOUCH-666 and commented
The last return should return template.support().applyUpdatedCas(...) instead of 'o'. If the 'o' is immutable, it won't contain the updated cas. This was done in DATACOUCH-625 for UpsertById, the same change is needed here in ReplaceById
return template.getCollection(collection).reactive() .replace(converted.getId(), converted.export(), buildReplaceOptions(o)).map(result -> { template.support().applyUpdatedCas(o, result.cas()); return o; });
Referenced from: pull request #288
Backported to: 4.1.3 (2020.0.3), 4.0.7 (Neumann SR7)