-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Split keys during backup restore. #4912
Conversation
Currently, split posting lists are split in one go. This means that the resulting splits will be added to the list even if they are still too big. This change recursively splits the parts of the lists until all of them are smaller than the threshold.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @martinmr)
worker/restore.go, line 155 at r1 (raw file):
return 0, err } } else {
else if size > something { roll up } else { just write } // the last one would be the most common case.
In fact, the first if can do the last one as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @manishrjain)
worker/restore.go, line 155 at r1 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
else if size > something { roll up } else { just write } // the last one would be the most common case.
In fact, the first if can do the last one as well.
Done.
If the list is too big and is not split before writing it too disk, we could end up in the situation described in #4733. So the posting lists should be split before writing them to disk.
If the list is too big and is not split before writing it too disk, we could end up in the situation
described in #4733. So the posting lists should be split before writing them to disk.
This change is
Docs Preview: