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

Allow reconstructSome to reconstruct parity shards #267

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

walldiss
Copy link
Contributor

@walldiss walldiss commented Jan 5, 2024

Implementation idea for: #266

reedsolomon.go Outdated Show resolved Hide resolved
Copy link
Owner

@klauspost klauspost left a comment

Choose a reason for hiding this comment

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

LGTM

@klauspost klauspost merged commit 162f2ba into klauspost:master Jan 5, 2024
13 checks passed
t.Fatal("ReconstructSome did not reconstruct required shards correctly")
}

// Reconstruct 3 shards with 3 data and 5 parity shards
Copy link
Contributor

@rootulp rootulp Jan 5, 2024

Choose a reason for hiding this comment

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

[question] not directly related to this PR but why does this claim to reconstruct 3 shards when below only two shares are requested for reconstruction:

	shardsRequired = make([]bool, 8)
	shardsRequired[3] = true
	shardsRequired[4] = true

should it instead state:

// Reconstruct 2 shards...

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.

3 participants