aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2024-02-19 18:51:45 -0800
committerGitHub <noreply@github.com>2024-02-19 18:51:45 -0800
commit32cb9b3276eb2b99cb541ae30a2c9376caabf1f0 (patch)
tree926957cb0295f736a61d7f6c736eabf3204dfbd4
parent41ec9d77596505dae3f0de0662db061fbaf168fc (diff)
downloadseaweedfs-32cb9b3276eb2b99cb541ae30a2c9376caabf1f0.tar.xz
seaweedfs-32cb9b3276eb2b99cb541ae30a2c9376caabf1f0.zip
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
-rw-r--r--weed/filer/reader_cache.go2
1 files changed, 1 insertions, 1 deletions
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 {