1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-17 08:00:28 +02:00

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

fix unaligned 64-bit atomic operation in weed mount on arm when reading a file

fix #5306
This commit is contained in:
Chris Lu 2024-02-19 18:51:45 -08:00 committed by GitHub
parent 41ec9d7759
commit 32cb9b3276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {