Skip to content

Commit

Permalink
Merge pull request #70 from fancybits/atomics-32bit
Browse files Browse the repository at this point in the history
Fix panics on 32-bit platforms due to misaligned atomics
  • Loading branch information
mschoch authored Nov 11, 2021
2 parents e7417ae + 7316f58 commit f89eff4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ import (
)

type Writer struct {
stats Stats

// state
nextSegmentID uint64

config Config
deletionPolicy DeletionPolicy
directory Directory
Expand All @@ -43,15 +48,10 @@ type Writer struct {
rootPersisted []chan error // closed when root is persisted
persistedCallbacks []func(error)

// state
nextSegmentID uint64

// control/track goroutines
closeCh chan struct{}
asyncTasks sync.WaitGroup

stats Stats

closeOnce sync.Once
}

Expand Down

0 comments on commit f89eff4

Please sign in to comment.