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.

fix unaligned 64-bit atomic operation in weed mount on arm when readi… (#5308)

Chris Lu32cb9b3276eb
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.go
index 27d40a78b8..9e52e9615f 100644
--- a/weed/filer/reader_cache.go
+++ b/weed/filer/reader_cache.go
@@ -20,6 +20,7 @@ type ReaderCache struct {
}
type SingleChunkCacher struct {
+ completedTimeNew int64
sync.Mutex
parent *ReaderCache
chunkFileId string
@@ -31,7 +32,6 @@ type SingleChunkCacher struct {
shouldCache bool
wg sync.WaitGroup
cacheStartedCh chan struct{}
- completedTimeNew int64
}
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache {