Skip to content

Commit 93230c1

Browse files
committed
OAK-11934 - segment prefetching for segmentstore cache
- add getTarFiles method missed in the previous commit
1 parent 3cb10d3 commit 93230c1

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/AbstractFileStore.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public SegmentReader getReader() {
194194
public SegmentIdProvider getSegmentIdProvider() {
195195
return tracker;
196196
}
197-
197+
198198
public int getBinariesInlineThreshold() {
199199
return binariesInlineThreshold;
200200
}
@@ -204,6 +204,13 @@ public int getBinariesInlineThreshold() {
204204
*/
205205
public abstract Revisions getRevisions();
206206

207+
/**
208+
* Access to the tar files managed by subclasses.
209+
*
210+
* @return the tar files
211+
*/
212+
protected abstract @NotNull TarFiles getTarFiles();
213+
207214
/**
208215
* Convenience method for accessing the root node for the current head.
209216
* This is equivalent to

oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/FileStore.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ public TarRevisions getRevisions() {
470470
}
471471
}
472472

473+
@Override
474+
protected @NotNull TarFiles getTarFiles() {
475+
return tarFiles;
476+
}
477+
473478
@Override
474479
public void close() {
475480
try (ShutDownCloser ignored = shutDown.shutDown()) {

oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/ReadOnlyFileStore.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ public ReadOnlyRevisions getRevisions() {
171171
return revisions;
172172
}
173173

174+
@Override
175+
protected @NotNull TarFiles getTarFiles() {
176+
return tarFiles;
177+
}
178+
174179
public Set<SegmentId> getReferencedSegmentIds() {
175180
return tracker.getReferencedSegmentIds();
176181
}

0 commit comments

Comments
 (0)