aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-02 13:57:34 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-02 13:57:43 -0700
commit8fe75692ee9adaae3c2fc0a735ae4d8a172d97ae (patch)
tree9320081d701e478b1c8aa6cade9856286dfb05c3
parent2cb8b31ea72dc53a3adac04295b76dcd73203fee (diff)
downloadseaweedfs-8fe75692ee9adaae3c2fc0a735ae4d8a172d97ae.tar.xz
seaweedfs-8fe75692ee9adaae3c2fc0a735ae4d8a172d97ae.zip
volume: address "unaligned 64-bit atomic operation"
fix https://github.com/chrislusf/seaweedfs/issues/2177
-rw-r--r--weed/server/volume_server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 0d765a253..be50739c6 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -17,6 +17,10 @@ import (
)
type VolumeServer struct {
+ inFlightDataSize int64
+ concurrentUploadLimit int64
+ inFlightDataLimitCond *sync.Cond
+
SeedMasterNodes []string
currentMaster string
pulseSeconds int
@@ -35,10 +39,6 @@ type VolumeServer struct {
fileSizeLimitBytes int64
isHeartbeating bool
stopChan chan bool
-
- inFlightDataSize int64
- inFlightDataLimitCond *sync.Cond
- concurrentUploadLimit int64
}
func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,