Browse Source
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
pull/5317/head
Chris Lu
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/filer/reader_cache.go
|
@ -20,6 +20,7 @@ type ReaderCache struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type SingleChunkCacher struct { |
|
|
type SingleChunkCacher struct { |
|
|
|
|
|
completedTimeNew int64 |
|
|
sync.Mutex |
|
|
sync.Mutex |
|
|
parent *ReaderCache |
|
|
parent *ReaderCache |
|
|
chunkFileId string |
|
|
chunkFileId string |
|
@ -31,7 +32,6 @@ type SingleChunkCacher struct { |
|
|
shouldCache bool |
|
|
shouldCache bool |
|
|
wg sync.WaitGroup |
|
|
wg sync.WaitGroup |
|
|
cacheStartedCh chan struct{} |
|
|
cacheStartedCh chan struct{} |
|
|
completedTimeNew int64 |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache { |
|
|
func NewReaderCache(limit int, chunkCache chunk_cache.ChunkCache, lookupFileIdFn wdclient.LookupFileIdFunctionType) *ReaderCache { |
|
|