Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4472

Decouple SegmentReader from Revisions

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: