Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetRecords improvement #471

Merged
merged 2 commits into from
Dec 11, 2020

Conversation

dgtony
Copy link
Contributor

@dgtony dgtony commented Dec 10, 2020

Currently if some node makes GetRecords request to another one, that hasn't received requested log offset yet, the latter responds with entire log (truncated at the limit). Here we propose an improvement: upon receiving a request, at first node should check if provided offset was already seen, otherwise it just returns empty log.

Copy link
Member

@sanderpick sanderpick left a comment

Choose a reason for hiding this comment

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

Nice, sounds reasonable to me.

@sanderpick sanderpick merged commit 505e850 into textileio:master Dec 11, 2020
@dgtony dgtony deleted the improvement/get-records-handler branch December 15, 2020 15:44
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