[ 
https://issues.apache.org/jira/browse/OAK-4470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387654#comment-15387654
 ] 

Chetan Mehrotra commented on OAK-4470:
--------------------------------------

{noformat}
-        builder.setProperty(asPropertyState(PROP_REVISION, 
state.getRevision()));
+        builder.setProperty(asPropertyState(PROP_REVISION, 
state.getRootRevision()));
{noformat}

Probably we can avoid saving any revision here

> Remove read revision method from DocumentNodeState
> --------------------------------------------------
>
>                 Key: OAK-4470
>                 URL: https://issues.apache.org/jira/browse/OAK-4470
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: documentmk
>            Reporter: Chetan Mehrotra
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: OAK-4470.patch
>
>
> {{DocumentNodeState}} has a {{getRevision}} method which provides the read 
> revision which was used at time of getting a {{DocumentNodeState}} out of 
> {{NodeDocument}}. Looking at usage of this method indicates that its only 
> used for root node and that usage can be replaced with call to 
> {{getRootRevision}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to