Skip to content

Commit f89eff4

Browse files
authored
Merge pull request #70 from fancybits/atomics-32bit
Fix panics on 32-bit platforms due to misaligned atomics
2 parents e7417ae + 7316f58 commit f89eff4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index/writer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ import (
3030
)
3131

3232
type Writer struct {
33+
stats Stats
34+
35+
// state
36+
nextSegmentID uint64
37+
3338
config Config
3439
deletionPolicy DeletionPolicy
3540
directory Directory
@@ -43,15 +48,10 @@ type Writer struct {
4348
rootPersisted []chan error // closed when root is persisted
4449
persistedCallbacks []func(error)
4550

46-
// state
47-
nextSegmentID uint64
48-
4951
// control/track goroutines
5052
closeCh chan struct{}
5153
asyncTasks sync.WaitGroup
5254

53-
stats Stats
54-
5555
closeOnce sync.Once
5656
}
5757

0 commit comments

Comments
 (0)