Skip to content

Conversation

@Phillippko
Copy link
Contributor

ByteBuffer buffer = getThreadLocalBuffer(pageSize);

DeltaFilePageStoreIo[] newerDeltaFiles = filePageStore.getCompletedDeltaFiles()
.stream().filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.stream().filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex())
.stream()
.filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex())

}

boolean shouldSkip = false;
for (int i = 0; i < pointers.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as you'll get rid of pointer array you can replace this loop with foreach loop

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed, doesn't take into account loop above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants