Michael Dürig created OAK-4472:
----------------------------------
Summary: 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
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)