Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

volume: address "unaligned 64-bit atomic operation"

Chris Lu8fe75692ee9a
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 0d765a253c..be50739c6b 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,