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

Fix #237: Add Prefix to File Chunks #239

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gugacavalieri
Copy link

@gugacavalieri gugacavalieri commented Nov 20, 2022

Fixes #237.

This PR adds trailing zeros when storing the dump chunks. This is done in order to keep the correct file order when restoring dumps. Instead of outputting 1.dump the code now outputs 0001.dump.

Using 4 digits will allow a max of 9999 chunk parts. With a chunk_size of 100MB this allow dumps to have a max of 1TB in the correct order.

The issue is described here: #237

@gugacavalieri gugacavalieri marked this pull request as ready for review November 20, 2022 20:27
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.

Wrong order when restoring dumps (>= 10 Chunks)
1 participant