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: redundancy root push #4711

Merged
merged 4 commits into from
Jul 9, 2024
Merged

fix: redundancy root push #4711

merged 4 commits into from
Jul 9, 2024

Conversation

nugaon
Copy link
Member

@nugaon nugaon commented Jun 13, 2024

Closes #4705

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@@ -31,9 +31,9 @@ func NewPutter(p storage.Putter) storage.Putter {
// Put makes the getter satisfy the storage.Getter interface
func (p *putter) Put(ctx context.Context, ch swarm.Chunk) (err error) {
rlevel := redundancy.GetLevelFromContext(ctx)
errs := []error{p.putter.Put(ctx, ch)}
errs := []error{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, so THIS is where the redundant put of the root chunk came from? I was wondering! Do you mind my asking (for my own education) where the root chunk actually gets put for rlevel==0?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is done by the hashtrie module which is in a chunk pipeline process that has a ChainWrite function which does the job.

@nugaon nugaon marked this pull request as ready for review June 13, 2024 15:10
@istae istae requested review from acha-bill and martinconic June 15, 2024 15:35
@nugaon nugaon merged commit 4369afe into master Jul 9, 2024
14 checks passed
@nugaon nugaon deleted the fix/redundancy-root-push branch July 9, 2024 11:16
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.

Overzealous (and constant) single chunk redundancy
5 participants