From 32cb9b3276eb2b99cb541ae30a2c9376caabf1f0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 19 Feb 2024 18:51:45 -0800 Subject: [PATCH] =?UTF-8?q?fix=20unaligned=2064-bit=20atomic=20operation?= =?UTF-8?q?=20in=20weed=20mount=20on=20arm=20when=20readi=E2=80=A6=20(#530?= =?UTF-8?q?8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix unaligned 64-bit atomic operation in weed mount on arm when reading a file fix #5306 --- weed/filer/reader_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.go index 27d40a78b..9e52e9615 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 {