From fce42348617039134300101a54af4990aa7d6c3c Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 26 Jul 2018 21:19:03 -0400 Subject: [PATCH] Rearrange struct members to avoid 64-bit int alignment issues --- src/duplicacy_chunkoperator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_chunkoperator.go b/src/duplicacy_chunkoperator.go index bf04610..6407938 100644 --- a/src/duplicacy_chunkoperator.go +++ b/src/duplicacy_chunkoperator.go @@ -27,11 +27,11 @@ type ChunkOperatorTask struct { // ChunkOperator is capable of performing multi-threaded operations on chunks. type ChunkOperator struct { + numberOfActiveTasks int64 // The number of chunks that are being operated on storage Storage // This storage threads int // Number of threads taskQueue chan ChunkOperatorTask // Operating goroutines are waiting on this channel for input stopChannel chan bool // Used to stop all the goroutines - numberOfActiveTasks int64 // The number of chunks that are being operated on fossils []string // For fossilize operation, the paths of the fossils are stored in this slice fossilsLock *sync.Mutex // The lock for 'fossils'