[ 
https://issues.apache.org/jira/browse/OAK-8028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davide Giannella closed OAK-8028.
---------------------------------

bulk close 1.12.0

> Avoid unnecessary query in UnsavedModifications.persist()
> ---------------------------------------------------------
>
>                 Key: OAK-8028
>                 URL: https://issues.apache.org/jira/browse/OAK-8028
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: documentmk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.12.0
>
>
> Towards the end of a background update, the method 
> {{UnsavedModifications.persist()}} writes the {{lastWrittenRootRev}} to the 
> clusterNode entry. Before the write, it checks whether the entry exists for 
> its clusterId. This is unnecessary because {{findAndUpdate()}} will only 
> perform the update when the document exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to