Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
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.