Skip to content

GetRecords improvement#471

Merged
sanderpick merged 2 commits intotextileio:masterfrom
anyproto:improvement/get-records-handler
Dec 11, 2020
Merged

GetRecords improvement#471
sanderpick merged 2 commits intotextileio:masterfrom
anyproto:improvement/get-records-handler

Conversation

@dgtony
Copy link
Copy Markdown
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.

Signed-off-by: Anton Dort-Golts <dortgolts@gmail.com>
Signed-off-by: Anton Dort-Golts <dortgolts@gmail.com>
Copy link
Copy Markdown
Contributor

@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