Skip to content

Commit

Permalink
Fix stash problem
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Feb 16, 2024
1 parent eef7505 commit e52968c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/oramnode/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func (o *oramNodeServer) readAllBuckets(buckets []int, storageID int) (blocksFro
if err != nil {
return nil, fmt.Errorf("unable to get bucket ids for early reshuffle path; %v", err)
}
for _, bucket := range buckets {
blocksFromReadBucket[bucket] = make(map[string]string)
}
readBucketResponseChan := make(chan readBucketResponse)
batches := distributeBucketIDs(buckets, o.parameters.RedisPipelineSize)
for _, bucketIDs := range batches {
Expand All @@ -166,9 +169,6 @@ func (o *oramNodeServer) readAllBuckets(buckets []int, storageID int) (blocksFro
return nil, fmt.Errorf("unable to read bucket; %s", err)
}
for bucket, blockValues := range response.bucketValues {
if blocksFromReadBucket[bucket] == nil {
blocksFromReadBucket[bucket] = make(map[string]string)
}
for block, value := range blockValues {
blocksFromReadBucket[bucket][block] = value
}
Expand Down

0 comments on commit e52968c

Please sign in to comment.