good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
7e1c374d
Commit
7e1c374d
authored
Sep 28, 2018
by
Janoš Guljaš
Committed by
Felix Lange
Sep 28, 2018
Browse files
Options
Downloads
Patches
Plain Diff
swarm/storage: ensure 64bit hasherStore struct alignment (#17766)
parent
7910dd51
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
swarm/storage/hasherstore.go
+4
-1
4 additions, 1 deletion
swarm/storage/hasherstore.go
with
4 additions
and
1 deletion
swarm/storage/hasherstore.go
+
4
−
1
View file @
7e1c374d
...
@@ -32,10 +32,13 @@ type hasherStore struct {
...
@@ -32,10 +32,13 @@ type hasherStore struct {
hashFunc
SwarmHasher
hashFunc
SwarmHasher
hashSize
int
// content hash size
hashSize
int
// content hash size
refSize
int64
// reference size (content hash + possibly encryption key)
refSize
int64
// reference size (content hash + possibly encryption key)
nrChunks
uint64
// number of chunks to store
errC
chan
error
// global error channel
errC
chan
error
// global error channel
doneC
chan
struct
{}
// closed by Close() call to indicate that count is the final number of chunks
doneC
chan
struct
{}
// closed by Close() call to indicate that count is the final number of chunks
quitC
chan
struct
{}
// closed to quit unterminated routines
quitC
chan
struct
{}
// closed to quit unterminated routines
// nrChunks is used with atomic functions
// it is required to be at the end of the struct to ensure 64bit alignment for arm architecture
// see: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
nrChunks
uint64
// number of chunks to store
}
}
// NewHasherStore creates a hasherStore object, which implements Putter and Getter interfaces.
// NewHasherStore creates a hasherStore object, which implements Putter and Getter interfaces.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment