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

Michael Dürig resolved OAK-4472.
--------------------------------
    Resolution: Fixed

Fixed at http://svn.apache.org/viewvc?rev=1748542&view=rev

> Decouple SegmentReader from Revisions
> -------------------------------------
>
>                 Key: OAK-4472
>                 URL: https://issues.apache.org/jira/browse/OAK-4472
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: technical_debt
>             Fix For: 1.6
>
>
> The {{SegmentReader.readHeadState()}} introduces a de-facto dependency to 
> {{Revisions}} as access to the latter is required for obtaining the record id 
> of the head. 
> To decouple SegmentReader from Revisions I propose to replace 
> {{SegmentReader.readHeadState()}} with 
> {{SegmentReader.readHeadState(Revisions revisions)}}. As this results in a 
> lot of boilerplate for callers (i.e. 
> {{fileStore.getReader().getHeadState(fileStore.getRevisions())}}), we should 
> also introduce a convenience method {{FileStore.getHead()}} clients could use 
> to that matter.



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

Reply via email to