[
https://issues.apache.org/jira/browse/OAK-7745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612187#comment-16612187
]
Julian Reschke commented on OAK-7745:
-------------------------------------
Like that:
{noformat}
---
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
(revision 1840656)
+++
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
(working copy)
@@ -1001,7 +1001,7 @@
throws DocumentStoreException {
log("createOrUpdate", update);
UpdateUtils.assertUnconditional(update);
- T doc = findAndModify(collection, update, true, false);
+ T doc = findAndModify(collection, update, update.isNew(), false);
log("createOrUpdate returns ", doc);
return doc;
}
{noformat}
> Clarify update semantics on deleted nodes
> -----------------------------------------
>
> Key: OAK-7745
> URL: https://issues.apache.org/jira/browse/OAK-7745
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: documentmk
> Reporter: Julian Reschke
> Priority: Major
> Attachments: OAK-7745-basic.diff, OAK-7745.diff
>
>
> It's not entirely clear to me what behavior we expect if:
>
> * node 1 creates a document
> * node 2 deletes it
> * node 1 tries to update it
> (and, related to that, whether the behavior really matters in practice)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)